]>
Commit | Line | Data |
---|---|---|
1 | diff -Nur old/courier-sox.sysvinit.in new/courier-sox.sysvinit.in | |
2 | --- old/courier-sox.sysvinit.in 2004-12-05 02:24:29.000000000 +0000 | |
3 | +++ new/courier-sox.sysvinit.in 2005-04-16 19:09:43.000000000 +0000 | |
4 | @@ -5,6 +5,9 @@ | |
5 | # | |
6 | # | |
7 | ||
8 | +# Source function library | |
9 | +. /etc/rc.d/init.d/functions | |
10 | + | |
11 | prefix="@prefix@" | |
12 | exec_prefix="@exec_prefix@" | |
13 | sysconfdir="@sysconfdir@" | |
14 | @@ -29,15 +32,23 @@ | |
15 | ||
16 | $sbindir/sockd stop | |
17 | echo "sockd" | |
18 | + rm -f /var/lock/subsys/courier-sox | |
19 | ;; | |
20 | restart) | |
21 | $0 stop | |
22 | $0 start | |
23 | ;; | |
24 | -reload) | |
25 | +reload|force-reload) | |
26 | echo -n "Reloading the Courier Socks server: " | |
27 | $sbindir/sockd restart | |
28 | echo "sockd" | |
29 | ;; | |
30 | +status) | |
31 | + status sockd | |
32 | + exit $? | |
33 | + ;; | |
34 | +*) | |
35 | + msg_usage "$0 {start|stop|restart|reload|force-reload|status}" | |
36 | + exit 3 | |
37 | esac | |
38 | exit 0 |