summaryrefslogtreecommitdiffstats
path: root/inetutils/inetd
diff options
context:
space:
mode:
Diffstat (limited to 'inetutils/inetd')
-rwxr-xr-xinetutils/inetd23
1 files changed, 23 insertions, 0 deletions
diff --git a/inetutils/inetd b/inetutils/inetd
new file mode 100755
index 0000000..b70001c
--- /dev/null
+++ b/inetutils/inetd
@@ -0,0 +1,23 @@
+#!/bin/sh
+#
+# /etc/rc.d/inetd: start/stop inet daemon
+#
+
+case $1 in
+start)
+ /usr/sbin/inetd
+ ;;
+stop)
+ killall -q /usr/sbin/inetd
+ ;;
+restart)
+ $0 stop
+ sleep 2
+ $0 start
+ ;;
+*)
+ echo "usage: $0 [start|stop|restart]"
+ ;;
+esac
+
+# End of file