Accept GNUTLS priority in configuration file.
[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 if [ -f /etc/init.d/functions ]
14   . /etc/init.d/functions
15 fi
16
17 case $1 in
18         start)
19                 daemon $POPPROXY_BIN
20                 ;;
21         stop)
22                 killproc $POPPROXY_BIN
23                 ;;
24         restart)
25                 $0 stop
26                 $0 start
27                 ;;
28         *)
29                 echo Not implemented. Use one of start, stop or restart.
30                 exit 1
31                 ;;
32 esac
33