#!/bin/sh ######################################################################## # Begin distccd # # Description : DistCC daemon boot script # # Authors : piernov # # 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} evaluate_retval ;; stop) log_info_msg "Stopping distcc Daemon" killproc /usr/bin/distccd evaluate_retval ;; restart) $0 stop sleep 1 $0 start ;; status) statusproc /usr/bin/distccd ;; *) echo "usage: $0 {start|stop|restart|status}" esac exit 0 # End distccd