2017-03-02 23:49:27 +01:00
|
|
|
#! /bin/sh
|
|
|
|
#
|
|
|
|
# distccd Debian init.d script contributed by Jason Thomas. (Debian #161136)
|
|
|
|
#
|
|
|
|
# skeleton example file to build /etc/init.d/ scripts.
|
|
|
|
# This file should be used to construct scripts for /etc/init.d.
|
|
|
|
#
|
|
|
|
# Written by Miquel van Smoorenburg <miquels@cistron.nl>.
|
|
|
|
# Modified for Debian GNU/Linux
|
|
|
|
# by Ian Murdock <imurdock@gnu.ai.mit.edu>.
|
|
|
|
#
|
|
|
|
# Version: @(#)skeleton 1.9.1 08-Apr-2002 miquels@cistron.nl
|
|
|
|
#
|
2017-03-03 00:00:12 +01:00
|
|
|
set -e
|
2017-03-02 23:49:27 +01:00
|
|
|
|
|
|
|
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
|
|
|
|
DAEMON=/usr/bin/distccd
|
|
|
|
NAME=distccd
|
|
|
|
DESC="Distributed Compiler Daemon"
|
2017-03-03 00:00:12 +01:00
|
|
|
DAEMON_ARGS="--nice=10 --port=4200 --pid-file=/var/run/$NAME.pid --no-detach $@"
|
2017-03-02 23:49:27 +01:00
|
|
|
|
|
|
|
test -x $DAEMON || exit 0
|
|
|
|
|
|
|
|
|
|
|
|
# we need permission to write to the pid file
|
|
|
|
touch /var/run/$NAME.pid
|
|
|
|
chown distccd /var/run/$NAME.pid
|
|
|
|
|
2017-03-03 00:00:12 +01:00
|
|
|
exec $DAEMON $DAEMON_ARGS
|