Use version macro in source file name.
[cascardo/rnetproxy.git] / popproxy.init
1 #!/bin/sh
2 ### BEGIN INIT INFO
3 # Provides:             popproxy
4 # Required-Start:
5 # Required-Stop:
6 # Default-Start:        2 3 4 5
7 # Default-Stop:         1
8 # Short-Description: POP Proxy
9 ### END INIT INFO
10
11 POPPROXY_BIN=/usr/sbin/popproxy
12
13 case $1 in
14         start)
15                 startproc $POPPROXY_BIN
16                 ;;
17         stop)
18                 killproc $POPPROXY_BIN
19                 ;;
20         restart)
21                 $0 stop
22                 $0 start
23                 ;;
24         *)
25                 echo Not implemented. Use one of start, stop or restart.
26                 exit 1
27                 ;;
28 esac
29