Debian Codegraph @

etc/init.d/flamethrower-server

raw symbols ◀ ▶ SCIP
2 Debian patches touch this file
1 #!/bin/shscip-shell filesystem . . `/bin/sh`.
2 #
3 # "Flamethrower"
4 #
5 # Copyright (C) 2003 Bald Guy Software
6 # Brian E. Finley <[email protected]>
7 #
8 # $Id: flamethrower-server 14 2003-05-27 20:09:00Z brianfinley $
9 #
10 #
11 # Support for IRIX style chkconfig:
12 # chkconfig: 2345 20 20
13 # description: The Flamethrower multicast daemon.
14 #
15 #
16 # Support for LSB compliant init system:
17 ### BEGIN INIT INFO
18 # Provides: flamethrowerd
•19 # Required-Start: $remote_fs $syslog $network
20 # Required-Stop: $remote_fs $syslog
21 # Default-Start: 2 3 4 5
22 # Default-Stop: 0 1 6
23 # Short-Description: Daemon for multicast file distribution
24 # Description: Daemon for multicast file distribution
25 ### END INIT INFO
26
•27 . /lib/lsb/init-functionsscip-shell source . . `/lib/lsb/init-functions`.
28
29 kill_em_allscip-shell shell shell-project 0.0.0 kill_em_all().() {
30 if [scip-shell system . . `[`. -f $PPID_FILE ]; then
31 killscip-shell system . . kill. `catscip-shell system . . cat. $PPID_FILE`
32 rmscip-shell system . . rm. -f $PPID_FILE
33 fi
34 if [scip-shell system . . `[`. "`lsscip-shell system . . ls. $STATE_DIR`" != "" ]; then
35 for PID_FILE in `lsscip-shell system . . ls. ${STATE_DIR}/*`
36 do
37 if [scip-shell system . . `[`. -f $PID_FILE ]; then
38 killscip-shell system . . kill. -9 `catscip-shell system . . cat. $PID_FILE`
39 rmscip-shell system . . rm. -f $PID_FILE
40 echoscip-shell system . . echo. -n "."
41 fi
42 done
43 kill_em_allscip-shell shell shell-project 0.0.0 kill_em_all().
44 fi
45 }
46
47 PATH=/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:scip-shell filesystem . . `/bin:/usr/bin:/usr/local/bin:/sbin:/usr/sbin:/usr/local/sbin:`.
48 PPID_FILE=/var/run/flamethrower-server.pidscip-shell filesystem . . `/var/run/flamethrower-server.pid`.
49
50 # STATE_DIR must match the setting in the flamethrower.conf file.
51 STATE_DIR=/var/state/flamethrowerscip-shell filesystem . . `/var/state/flamethrower`.
52
53 case "$1" in
54 start)
55 if [scip-shell system . . `[`. -e $PPID_FILE ]; then
56 echoscip-shell system . . echo. "PID file $PPID_FILE exists. Must be already running."
57 exit 1
58 fi
59 echoscip-shell system . . echo. -n "Starting Flamethrower daemon: flamethrowerd"
60 flamethrowerd --config-file /etc/flamethrower/flamethrower.confscip-shell filesystem . . `/etc/flamethrower/flamethrower.conf`. --pid-file $PPID_FILE
61 echoscip-shell system . . echo. "."
62 ;;
63 stop)
64 echoscip-shell system . . echo. -n "Stopping Flamethrower daemon: flamethrowerd"
65 kill_em_allscip-shell shell shell-project 0.0.0 kill_em_all().
66 echoscip-shell system . . echo.
67 ;;
68 reload)
69 echoscip-shell system . . echo. "Not implemented."
70 ;;
71 force-reload|restart)
72 shscip-shell system . . sh. $0 stop
73 shscip-shell system . . sh. $0 start
74 ;;
75 *)
76 echoscip-shell system . . echo. "Usage: $0 {start|stop|restart}"
77 exit 1
78 ;;
79 esac
80
81 exit 0