diff options
author | pav <pav@FreeBSD.org> | 2004-07-28 18:32:05 +0000 |
---|---|---|
committer | pav <pav@FreeBSD.org> | 2004-07-28 18:32:05 +0000 |
commit | 849c46ba81f245a0879abc8f9f5afeaba4079ac1 (patch) | |
tree | ac7ab4cdfd13df64728f4c157f4f46971fd5eaa7 /devel/distcc/files | |
parent | 37b694b8e3fa0f7fdcfc48761b3caa447e0e0962 (diff) | |
download | FreeBSD-ports-849c46ba81f245a0879abc8f9f5afeaba4079ac1.zip FreeBSD-ports-849c46ba81f245a0879abc8f9f5afeaba4079ac1.tar.gz |
- Update to 2.16
- RCng rc script
PR: ports/69081
Submitted by: Michael Johnson <ahze@ahze.net>
Approved by: maintainer
Diffstat (limited to 'devel/distcc/files')
-rw-r--r-- | devel/distcc/files/distccd.sh.sample | 39 |
1 files changed, 21 insertions, 18 deletions
diff --git a/devel/distcc/files/distccd.sh.sample b/devel/distcc/files/distccd.sh.sample index 48774c5..e3cc9ef 100644 --- a/devel/distcc/files/distccd.sh.sample +++ b/devel/distcc/files/distccd.sh.sample @@ -3,23 +3,26 @@ # $FreeBSD$ # -if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then - echo "$0: Cannot determine the PREFIX" >&2 - exit 1 -fi +# PROVIDE: distccd +# REQUIRE: NETWORKING +# KEYWORD: FreeBSD shutdown -case "$1" in -start) - [ -x ${PREFIX}/sbin/distccd ] && \ - ${PREFIX}/sbin/distccd -P /var/run/distccd.pid \ - --user distcc --daemon && echo -n ' distcc' - ;; -stop) - kill -TERM `cat /var/run/distccd.pid` && echo -n ' distcc' - ;; -*) - echo "Usage: `basename $0` { start | stop }" >&2 - ;; -esac +# +# Add the following lines to /etc/rc.conf to enable distccd: +# +# distccd_enable="YES" +# + +distccd_enable="NO" +distccd_flags="--user distcc --daemon -P %%DISTCCD_PIDFILE%%" + +. %%RC_SUBR%% + +name=distccd +rcvar=`set_rcvar` + +command=%%PREFIX%%/sbin/${name} +pidfile=%%DISTCCD_PIDFILE%% -exit 0 +load_rc_config ${name} +run_rc_command "$1" |