7753a3ffed
Change Log: http://distcc.samba.org/download.html Port Change Log: o Install distccd.sh.sample script o Create distcc user and group o Generally bring closer to the packaging guidelines: http://distcc.samba.org/ftp/unpacked/distcc/README.packaging PR: 55416 Submitted by: Dominic Marks <dom@wirespeed.org.uk>
25 lines
454 B
Bash
25 lines
454 B
Bash
#!/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
|