* Merged newxml into HEAD
[linux_from_scratch.git] / bootscripts / blfs / init.d / xinetd
blobea5295c6888695c004e43acb8a40e5d46fc90a85
1 #!/bin/sh
2 # Begin $rc_base/init.d/xinetd
4 # Based on sysklogd script from LFS-3.1 and earlier.
5 # Rewritten by Gerard Beekmans - gerard@linuxfromscratch.org
7 . /etc/sysconfig/rc
8 . $rc_functions
10 case "$1" in
11 start)
12 echo "Starting xinetd..."
13 loadproc /usr/sbin/xinetd
16 stop)
17 echo "Stopping xinetd..."
18 killproc /usr/sbin/xinetd
21 reload)
22 echo "Reloading xinetd..."
23 killall -HUP xinetd
26 restart)
27 $0 stop
28 sleep 1
29 $0 start
32 status)
33 statusproc /usr/sbin/xinetd
37 echo "Usage: $0 {start|stop|reload|restart|status}"
38 exit 1
40 esac
42 # End $rc_base/init.d/xinetd