diff options
author | piernov <piernov@piernov.org> | 2012-07-13 14:46:00 +0000 |
---|---|---|
committer | piernov <piernov@piernov.org> | 2012-07-13 14:46:00 +0000 |
commit | a90bcc70bd1286c8d872a8f02b238376211b496e (patch) | |
tree | 484546e110441128b99036ef589316b3d1aba4fd /distcc/distccd.rc | |
parent | a1b154da7bc9f3fa75e6526b71fcccdf651e340c (diff) | |
parent | 308b6d5ffc6986133e2300886f2472585c939f6e (diff) | |
download | nutyx-extra-a90bcc70bd1286c8d872a8f02b238376211b496e.tar.gz nutyx-extra-a90bcc70bd1286c8d872a8f02b238376211b496e.tar.bz2 nutyx-extra-a90bcc70bd1286c8d872a8f02b238376211b496e.tar.xz nutyx-extra-a90bcc70bd1286c8d872a8f02b238376211b496e.zip |
Merge branch 'master' of git://piernov.org/nutyx-extra
Diffstat (limited to 'distcc/distccd.rc')
-rw-r--r-- | distcc/distccd.rc | 51 |
1 files changed, 51 insertions, 0 deletions
diff --git a/distcc/distccd.rc b/distcc/distccd.rc new file mode 100644 index 000000000..29601981d --- /dev/null +++ b/distcc/distccd.rc @@ -0,0 +1,51 @@ +#!/bin/sh +######################################################################## +# Begin distccd +# +# Description : DistCC daemon boot script +# +# Authors : piernov <piernov@piernov.org> +# +# Version : 0.1 +# +# Notes : Configurable through /etc/sysconfig/distcc +# +######################################################################## + +### BEGIN INIT INFO +# Provides: distcc +# Required-Start: $local_fs $syslog +# Required-Stop: $local_fs $syslog +# Default-Start: 3 4 5 +# Default-Stop: 0 1 2 6 +# Short-Description: Start distcc daemon +# X-LFS-Provided-By: piernov +### END INIT INFO + +. /lib/lsb/init-functions + +if [ -f /etc/sysconfig/distccd ];then . /etc/sysconfig/distccd; fi + +case "$1" in + start) + log_info_msg "Starting distcc Daemon" + start_daemon /usr/bin/distccd --daemon ${DISTCC_ARGS} + ;; + stop) + log_info_msg "Stopping distcc Daemon" + killproc /usr/bin/distccd + ;; + restart) + $0 stop + sleep 1 + $0 start + ;; + status) + statusproc /usr/bin/distccd + ;; + *) + echo "usage: $0 {start|stop|restart|status}" +esac +exit 0 + +# End distccd |