diff options
Diffstat (limited to 'devel/distcc/files/distccd.sh.sample')
-rw-r--r-- | devel/distcc/files/distccd.sh.sample | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/devel/distcc/files/distccd.sh.sample b/devel/distcc/files/distccd.sh.sample new file mode 100644 index 000000000000..48774c588b14 --- /dev/null +++ b/devel/distcc/files/distccd.sh.sample @@ -0,0 +1,25 @@ +#!/bin/sh +# +# $FreeBSD$ +# + +if ! PREFIX=$(expr $0 : "\(/.*\)/etc/rc\.d/$(basename $0)\$"); then + echo "$0: Cannot determine the PREFIX" >&2 + exit 1 +fi + +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 + +exit 0 |