freebsd-ports/devel/distcc/files/distccd.sh.sample
Yen-Ming Lee 7753a3ffed devel/distcc 2.7 -> 2.9
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>
2003-08-10 03:49:48 +00:00

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