summaryrefslogtreecommitdiffstats
path: root/noise/init.d
diff options
context:
space:
mode:
authortv <tv@nomic.retiolum>2013-12-09 20:07:19 +0100
committertv <tv@nomic.retiolum>2013-12-09 20:07:19 +0100
commitf4f5b3b7aff2ac45ee035f54d6e8899ff963d133 (patch)
tree415410184165bbeaa7ed0cb54b7b915a856e909b /noise/init.d
parent5788b95fe7834d3049df9de1009f3d8dbc34fea2 (diff)
noise: RIP
Diffstat (limited to 'noise/init.d')
-rwxr-xr-xnoise/init.d/noise48
1 files changed, 0 insertions, 48 deletions
diff --git a/noise/init.d/noise b/noise/init.d/noise
deleted file mode 100755
index 075e47d7..00000000
--- a/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/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