debian
Rev | Line | |
---|
[632040d] | 1 | #!/bin/sh |
---|
| 2 | ### BEGIN INIT INFO |
---|
| 3 | # Provides: gutenbach-server |
---|
| 4 | # Required-Start: $remote_fs $syslog cups |
---|
| 5 | # Required-Stop: $remote_fs $syslog |
---|
| 6 | # Default-Start: 2 3 4 5 |
---|
| 7 | # Default-Stop: 0 1 6 |
---|
| 8 | # Short-Description: Starts lpd for gutenbach. |
---|
| 9 | # Description: Starts lpd for gutenbach and creates |
---|
| 10 | # files for use by gutenbach. |
---|
| 11 | ### END INIT INFO |
---|
| 12 | |
---|
| 13 | case "$1" in |
---|
| 14 | start) |
---|
| 15 | mkdir /var/run/gutenbach |
---|
| 16 | touch /var/run/gutenbach/status |
---|
| 17 | chmod 0777 /var/run/gutenbach/status |
---|
| 18 | |
---|
| 19 | ;; |
---|
| 20 | |
---|
| 21 | stop) |
---|
| 22 | |
---|
| 23 | if [ -e /var/run/gutenbach ]; then |
---|
| 24 | rm -r /var/run/gutenbach |
---|
| 25 | fi |
---|
| 26 | |
---|
| 27 | ;; |
---|
| 28 | |
---|
| 29 | restart) |
---|
| 30 | |
---|
| 31 | if [ -e /var/run/gutenbach ]; then |
---|
| 32 | rm -r /var/run/gutenbach |
---|
| 33 | fi |
---|
| 34 | |
---|
| 35 | |
---|
| 36 | mkdir /var/run/gutenbach |
---|
| 37 | touch /var/run/gutenbach/status |
---|
| 38 | chmod 0777 /var/run/gutenbach/status |
---|
| 39 | |
---|
| 40 | ;; |
---|
| 41 | |
---|
| 42 | reload|force-reload|status) |
---|
| 43 | ;; |
---|
| 44 | |
---|
| 45 | *) |
---|
| 46 | echo "Usage: /etc/init.d/gutenbach {start|stop|restart}" >&2 |
---|
| 47 | exit 1 |
---|
| 48 | ;; |
---|
| 49 | esac |
---|
Note: See
TracBrowser
for help on using the repository browser.