projects
/
openwrt.git
/ blob
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
create /etc/xinetd.d used by includedir in /etc/xinetd.conf
[openwrt.git]
/
package
/
xinetd
/
files
/
xinetd.init
1
#!/bin/sh
2
3
DEFAULT=/etc/default/xinetd
4
RUN_D=/var/run
5
PID_F=$RUN_D/xinetd.pid
6
[ -f $DEFAULT ] && . $DEFAULT
7
8
case $1 in
9
start)
10
[ -d $RUN_D ] || mkdir -p $RUN_D
11
xinetd $OPTIONS
12
;;
13
stop)
14
[ -f $PID_F ] && kill $(cat $PID_F)
15
;;
16
*)
17
echo "usage: $0 (start|stop)"
18
exit 1
19
esac
20
21
exit $?