blob: df01286b90949874d28ea993af99f5192757b3c5 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
|
#!/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}
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
|