Signed-off-by: Jess Frazelle <acidburn@microsoft.com>
This commit is contained in:
Jess Frazelle
2018-09-24 19:47:53 -04:00
parent ef0a7f463f
commit f37b405511
3 changed files with 23 additions and 20 deletions

View File

@@ -16,8 +16,7 @@ set -e
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
DAEMON=/usr/bin/distccd
NAME=distccd
DESC="Distributed Compiler Daemon"
DAEMON_ARGS="--nice=10 --port=4200 --pid-file=/var/run/$NAME.pid --no-detach $@"
DAEMON_ARGS="--nice=10 --port=4200 --pid-file=/var/run/${NAME}.pid --no-detach $*"
test -x $DAEMON || exit 0
@@ -26,4 +25,5 @@ test -x $DAEMON || exit 0
touch /var/run/$NAME.pid
chown distccd /var/run/$NAME.pid
# shellcheck disable=SC2086
exec $DAEMON $DAEMON_ARGS