diff options
author | tv <tv@nomic.retiolum> | 2013-12-09 20:07:19 +0100 |
---|---|---|
committer | tv <tv@nomic.retiolum> | 2013-12-09 20:07:19 +0100 |
commit | f4f5b3b7aff2ac45ee035f54d6e8899ff963d133 (patch) | |
tree | 415410184165bbeaa7ed0cb54b7b915a856e909b /noise/init.d | |
parent | 5788b95fe7834d3049df9de1009f3d8dbc34fea2 (diff) |
noise: RIP
Diffstat (limited to 'noise/init.d')
-rwxr-xr-x | noise/init.d/noise | 48 |
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 |