source: gutenbach/debian/gutenbach.init @ 9a301c8

debianmacno-cupsnodebathenaweb
Last change on this file since 9a301c8 was 9a301c8, checked in by Jessica Hamrick <jhamrick@…>, 15 years ago

Revert "Remove submodules and do a little restructuring"

This reverts commit fcff7cd7dfaee2a199339113dfc3c1b7ad759983.

  • Property mode set to 100644
File size: 928 bytes
Line 
1#!/bin/sh
2### BEGIN INIT INFO
3# Provides:          gutenbach
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.