projects
/
openwrt
/
svn-archive
/
archive.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[packages] xinetd: update to 2.3.15 (CVE-2012-0862), use CONFIGURE_{ARGS,VARS} &...
[openwrt/svn-archive/archive.git]
/
net
/
xinetd
/
files
/
xinetd.init
diff --git
a/net/xinetd/files/xinetd.init
b/net/xinetd/files/xinetd.init
index 8ca59b93f85128b517733d1135b4f4183d3e6b07..1437f587c52e3505a8c3af8b0fee98a0d9cb544e 100644
(file)
--- a/
net/xinetd/files/xinetd.init
+++ b/
net/xinetd/files/xinetd.init
@@
-1,17
+1,15
@@
#!/bin/sh /etc/rc.common
#!/bin/sh /etc/rc.common
-# Copyright (C) 2006 OpenWrt.org
+# Copyright (C) 2006
-2011
OpenWrt.org
-DEFAULT=/etc/default/xinetd
-RUN_D=/var/run
-PID_F=$RUN_D/xinetd.pid
+START=50
+
+SERVICE_USE_PID=1
start() {
start() {
- [ -f $DEFAULT ] && . $DEFAULT
- [ -d $RUN_D ] || mkdir -p $RUN_D
- xinetd $OPTIONS
+ service_start /usr/sbin/xinetd -pidfile /var/run/xinetd.pid
}
stop() {
}
stop() {
- [ -f $PID_F ] && kill $(cat $PID_F)
+ service_stop /usr/sbin/xinetd
}
}