source: debian/gutenbach-server.init @ aa5ccdd

debian
Last change on this file since aa5ccdd was 632040d, checked in by Jessica B. Hamrick <jhamrick@…>, 14 years ago

Revert "Remove debian specific files from master branch"

This reverts commit 459c56e6bfd49c899bec305b5831758b5c291993.

  • Property mode set to 100644
File size: 935 bytes
Line 
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
13case "$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    ;;
49esac
Note: See TracBrowser for help on using the repository browser.