X-Git-Url: http://git.openwrt.org/?a=blobdiff_plain;f=net%2Fxinetd%2Ffiles%2Fxinetd.init;h=1437f587c52e3505a8c3af8b0fee98a0d9cb544e;hb=5affe449d1671a9765a88ea0e5542cc28626d921;hp=8ca59b93f85128b517733d1135b4f4183d3e6b07;hpb=1f75d5501cb34f16404df265874bb341e0daba2e;p=openwrt%2Fsvn-archive%2Farchive.git diff --git a/net/xinetd/files/xinetd.init b/net/xinetd/files/xinetd.init index 8ca59b93f8..1437f587c5 100644 --- a/net/xinetd/files/xinetd.init +++ b/net/xinetd/files/xinetd.init @@ -1,17 +1,15 @@ #!/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() { - [ -f $DEFAULT ] && . $DEFAULT - [ -d $RUN_D ] || mkdir -p $RUN_D - xinetd $OPTIONS + service_start /usr/sbin/xinetd -pidfile /var/run/xinetd.pid } stop() { - [ -f $PID_F ] && kill $(cat $PID_F) + service_stop /usr/sbin/xinetd }