14 start) |
14 start) |
15 echo "Starting fixbot:" |
15 echo "Starting fixbot:" |
16 echo -n "\tnexus... " |
16 echo -n "\tnexus... " |
17 |
17 |
18 start-stop-daemon --start --quiet --exec /usr/bin/twistd \ |
18 start-stop-daemon --start --quiet --exec /usr/bin/twistd \ |
19 --pidfile=$pidfile_nexus \ |
19 --pidfile="$pidfile_nexus" \ |
20 --rundir=$rundir \ |
20 --rundir="$rundir" \ |
21 --logfile=$logfile_nexus \ |
21 --logfile="$logfile_nexus" \ |
22 nexus \ |
22 fixbot_nexus \ |
23 $args_nexus \ |
23 $args_nexus \ |
24 && echo "[OK]" || echo "[FAIL]" |
24 && echo "[OK]" || echo "[FAIL]" |
25 |
25 |
26 echo -n "\tlogwatch... " |
26 echo -n "\tlogwatch... " |
27 |
27 |
28 start-stop-daemon --start --quiet --exec /usr/bin/twistd \ |
28 start-stop-daemon --start --quiet --exec /usr/bin/twistd \ |
29 --pidfile=$pidfile_logwatch \ |
29 --pidfile="$pidfile_logwatch" \ |
30 --rundir=$rundir \ |
30 --rundir="$rundir" \ |
31 --logfile=$logfile_logwatch \ |
31 --logfile="$logfile_logwatch" \ |
32 logwatch \ |
32 fixbot_logwatch \ |
33 $args_logwatch \ |
33 $args_logwatch \ |
34 && echo "[OK]" || echo "[FAIL]" |
34 && echo "[OK]" || echo "[FAIL]" |
35 ;; |
35 ;; |
36 |
36 |
37 stop) |
37 stop) |
38 echo -n "Stopping fixbot:" |
38 echo -n "Stopping fixbot:" |
39 |
39 |
40 echo "logwatch... " |
40 echo "logwatch... " |
41 start-stop-daemon --stop --quiet --pidfile $pidfile_logwatch |
41 start-stop-daemon --stop --quiet \ |
|
42 --pidfile "$pidfile_logwatch" |
42 |
43 |
43 echo "nexus... " |
44 echo "nexus... " |
44 start-stop-daemon --stop --quiet --pidfile $pidfile_nexus |
45 start-stop-daemon --stop --quiet \ |
|
46 --pidfile "$pidfile_nexus" |
45 |
47 |
46 ;; |
48 ;; |
47 |
49 |
48 restart) |
50 restart) |
49 $0 stop |
51 $0 stop |