equal
deleted
inserted
replaced
1 #!/bin/sh |
1 #!/bin/sh |
2 |
2 |
|
3 ### BEGIN INIT INFO |
|
4 # Provides: mcbot |
|
5 # Required-Start: $remote_fs $syslog |
|
6 # Required-Stop: $remote_fs $syslog |
|
7 # Default-Start: 2 3 4 5 |
|
8 # Default-Stop: 0 1 6 |
|
9 # Short-Description: IRC BOT mcbot |
|
10 # Description: IRC BOT mcbot |
|
11 ### END INIT INFO |
|
12 |
3 BINARY="mcbot" |
13 BINARY="mcbot" |
4 DIRECTORY="/usr/local/sbin/" |
14 DIRECTORY="/usr/sbin/" |
5 LANGUAGE="de_DE.UTF-8" |
15 LANGUAGE="de_DE.UTF-8" |
6 |
16 |
7 [[ ! -x "${DIRECTORY}/${BINARY}" ]] && exit 0 |
17 [[ ! -x "${DIRECTORY}/${BINARY}" ]] && exit 0 |
8 |
18 |
9 start() { |
19 start() { |
46 restart) |
56 restart) |
47 echo "Restarting ${BINARY}" |
57 echo "Restarting ${BINARY}" |
48 stop |
58 stop |
49 start |
59 start |
50 ;; |
60 ;; |
|
61 force-reload) |
|
62 echo "Force reload stub" |
|
63 stop |
|
64 start |
|
65 ;; |
|
66 |
51 *) |
67 *) |
52 echo "Usage: start|stop|restart|status" |
68 echo "Usage: start|stop|restart|status|force-reload" |
53 ;; |
69 ;; |
54 esac |
70 esac |
55 |
71 |
56 exit 0 |
72 exit 0 |