]>
Commit | Line | Data |
---|---|---|
60cbd6e7 MT |
1 | #!/bin/sh |
2 | # Begin /etc/init.d/xinetd | |
3 | ||
4 | # Based on sysklogd script from LFS-3.1 and earlier. | |
5 | # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org | |
6 | ||
7 | #$LastChangedBy: bdubbs $ | |
8 | #$Date: 2005-08-01 14:29:19 -0500 (Mon, 01 Aug 2005) $ | |
9 | ||
10 | . /etc/init.d/init-functions | |
11 | ||
12 | case "$1" in | |
13 | start) | |
14 | boot_mesg "Starting xinetd..." | |
15 | loadproc /usr/sbin/xinetd | |
16 | ;; | |
17 | ||
18 | stop) | |
19 | boot_mesg "Stopping xinetd..." | |
20 | killproc /usr/sbin/xinetd | |
21 | ;; | |
22 | ||
23 | reload) | |
24 | boot_mesg "Reloading xinetd..." | |
25 | reloadproc /usr/sbin/xinetd | |
26 | ;; | |
27 | ||
28 | restart) | |
29 | $0 stop | |
30 | sleep 1 | |
31 | $0 start | |
32 | ;; | |
33 | ||
34 | status) | |
35 | statusproc /usr/sbin/xinetd | |
36 | ;; | |
37 | ||
38 | *) | |
39 | echo "Usage: $0 {start|stop|reload|restart|status}" | |
40 | exit 1 | |
41 | ;; | |
42 | esac | |
43 | ||
44 | # End /etc/init.d/xinetd |