void-packages/srcpkgs/distcc/files/distccd/run
jbu 7b66405855 distcc: remove --no-fork option
With --no-fork distccd will only ever run one job at a time.
2015-05-07 00:10:52 +02:00

16 lines
450 B
Bash
Executable file

#!/bin/sh
PROG="distccd"
USER="nobody"
OPTIONS="--no-detach"
OPTIONS="$OPTIONS --daemon"
OPTIONS="$OPTIONS --user $USER"
ALLOW_FILE=/etc/distcc/clients.allow
if [ -f "$ALLOW_FILE" ]; then
ALLOW_OPTIONS=$(sed -e 's/#.*$//' -e '/^\s*$/d' -e 's/^/--allow /' < $ALLOW_FILE)
fi
if [ -z "$ALLOW_OPTIONS" ]; then
# Default to allow localhost
ALLOW_OPTIONS="--allow 127.0.0.1"
fi
OPTIONS="$OPTIONS $ALLOW_OPTIONS"
exec $PROG $OPTIONS