root/floppyfw/devkitstuff/S70distccd

Revision 43, 0.7 KB (checked in by root, 6 years ago)

Need to place these somewhere.

  • Property svn:executable set to *
Line 
1#!/bin/sh
2#
3# Starts distccd
4#
5
6# Make sure the distccd progam exists
7# (Should rather check the existence of a configuration file or something.)
8[ -f /usr/bin/distccd ] || exit 0
9
10umask 077
11
12start() {
13        echo -n "Starting distcc: "
14        start-stop-daemon --start --quiet --pidfile /var/run/distcc.pid --exec /usr/bin/distccd -- --user nobody --pid-file /var/run/distcc.pid
15        echo "OK"
16}
17stop() {
18        echo -n "Stopping distcc: "
19        start-stop-daemon --stop --quiet --pidfile /var/run/distcc.pid
20        echo "OK"
21}
22restart() {
23        stop
24        start
25}
26
27case "$1" in
28  start)
29        start
30        ;;
31  stop)
32        stop
33        ;;
34  restart|reload)
35        restart
36        ;;
37  *)
38        echo $"Usage: $0 {start|stop|restart}"
39        exit 1
40esac
41
42exit $?
43
Note: See TracBrowser for help on using the browser.