summaryrefslogtreecommitdiffstats
path: root/modules/noise/init.d
diff options
context:
space:
mode:
authortv <tv@also>2011-05-29 15:47:21 +0200
committertv <tv@also>2011-05-29 15:47:21 +0200
commit12c77cdbfa4ec48d935af3ae7cf1118e38bec6e1 (patch)
tree2fdf8b557d2a2a1edaba2be569c2110c3822559f /modules/noise/init.d
parentedaa1d7f7a0ed33c019fce185b8aff7563498b6e (diff)
lowered filesystem hierarchy--everything are modules
Diffstat (limited to 'modules/noise/init.d')
-rwxr-xr-xmodules/noise/init.d/noise48
1 files changed, 0 insertions, 48 deletions
diff --git a/modules/noise/init.d/noise b/modules/noise/init.d/noise
deleted file mode 100755
index 66be9bd9..00000000
--- a/modules/noise/init.d/noise
+++ /dev/null
@@ -1,48 +0,0 @@
-#!/bin/sh -e
-### BEGIN INIT INFO
-# Provides: noise
-# Required-Start: $remote_fs $syslog dbus
-# Required-Stop: $remote_fs $syslog dbus
-# Default-Start: 2 3 4 5
-# Default-Stop: 1
-# Short-Description: Start the noise "Telnet" server
-# Description: System mode startup script for
-# the noise "Telnet" server.
-### END INIT INFO
-
-DAEMON=/krebs/modules/noise/noise-server
-
-test -x $DAEMON || exit 1
-
-noise_pid() {
- ps aux | grep tcpserver | grep noise-as-user | awk '{print$2}'
-}
-
-noise_start() {
- "$DAEMON" &
-}
-
-noise_stop() {
- kill "`noise_pid`"
-}
-
-case "$1" in
- start|stop)
- noise_${1}
- ;;
- restart|reload|force-reload)
- noise_stop
- noise_start
- ;;
- #force-stop) ;;
- status)
- kill -s 0 "`noise_pid`"
- exit $?
- ;;
- *)
- echo "Usage: /etc/init.d/noise {start|stop|force-stop|restart|reload|force-reload|status}"
- exit 1
- ;;
-esac
-
-exit 0