blob: 457b39b4436cdb7d1e91a355041eaff8548242cf (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
|
#!/sbin/runscript
depend() {
need net
}
autoconfig() {
if [ ! -e /etc/xinetd.conf ] ; then
if [ ! -e /etc/inetd.conf ] ; then
eerror "You need an /etc/xinetd.conf file to run xinetd!"
exit 1
else
einfo "Auto-creating xinetd.conf from your inetd.conf.."
/usr/sbin/xconv.pl < /etc/inetd.conf > /etc/xinetd.conf
fi
fi
}
start() {
autoconfig
ebegin "Starting xinetd"
start-stop-daemon --start --quiet --exec /usr/sbin/xinetd 1>&2
eend $?
}
stop() {
ebegin "Stopping xinetd"
start-stop-daemon --stop --quiet -u root -n xinetd 1>&2
eend $?
}
|