summaryrefslogtreecommitdiff
path: root/packages/netkit-base/netkit-base-0.17/init
diff options
context:
space:
mode:
authorKoen Kooi <koen@openembedded.org>2005-06-30 08:19:37 +0000
committerOpenEmbedded Project <openembedded-devel@lists.openembedded.org>2005-06-30 08:19:37 +0000
commitc8e5702127e507e82e6f68a4b8c546803accea9d (patch)
tree00583491f40ecc640f2b28452af995e3a63a09d7 /packages/netkit-base/netkit-base-0.17/init
parent87ec8ca4d2e2eb4d1c1e1e1a6b46a395d56805b9 (diff)
import clean BK tree at cset 1.3670
Diffstat (limited to 'packages/netkit-base/netkit-base-0.17/init')
-rwxr-xr-x[-rw-r--r--]packages/netkit-base/netkit-base-0.17/init33
1 files changed, 33 insertions, 0 deletions
diff --git a/packages/netkit-base/netkit-base-0.17/init b/packages/netkit-base/netkit-base-0.17/init
index e69de29bb2..cf50bcd546 100644..100755
--- a/packages/netkit-base/netkit-base-0.17/init
+++ b/packages/netkit-base/netkit-base-0.17/init
@@ -0,0 +1,33 @@
+#!/bin/sh
+#
+# start/stop inetd super server.
+
+if ! [ -x /usr/sbin/inetd ]; then
+ exit 0
+fi
+
+case "$1" in
+ start)
+ echo -n "Starting internet superserver:"
+ echo -n " inetd" ; start-stop-daemon -S -x /usr/sbin/inetd > /dev/null
+ echo "."
+ ;;
+ stop)
+ echo -n "Stopping internet superserver:"
+ echo -n " inetd" ; start-stop-daemon -K -x /usr/sbin/inetd > /dev/null
+ echo "."
+ ;;
+ restart)
+ echo -n "Restarting internet superserver:"
+ echo -n " inetd "
+ killall -HUP inetd
+ echo "."
+ ;;
+ *)
+ echo "Usage: /etc/init.d/inetd {start|stop|restart}"
+ exit 1
+ ;;
+esac
+
+exit 0
+