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