diff options
| author | makefu <github@syntax-fehler.de> | 2013-01-14 14:46:22 +0100 |
|---|---|---|
| committer | makefu <github@syntax-fehler.de> | 2013-01-14 14:46:22 +0100 |
| commit | dbe2d838ba6834788265029162b2dd7d82473335 (patch) | |
| tree | a4eb38f7fc91d91269b6f83453de62242c6ddc23 /evan/evan-startup | |
| parent | 5a782f6c8f7923f9f415afd504ce6e71acbc7fef (diff) | |
| parent | abf9916bc1add17888308877fa4eb9da330297ef (diff) | |
Merge branch 'master' of github.com:krebscode/painload
Conflicts:
god/temper/Makefile
god/temper/collectd-temper.sh
Diffstat (limited to 'evan/evan-startup')
| -rwxr-xr-x | evan/evan-startup | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/evan/evan-startup b/evan/evan-startup deleted file mode 100755 index 8a7f8daa..00000000 --- a/evan/evan-startup +++ /dev/null @@ -1,74 +0,0 @@ -#! /bin/sh -# -### BEGIN INIT INFO -# Provides: evan -# Required-Start: $remote_fs $network -# Required-Stop: $remote_fs $network -# Should-Start: $syslog $named -# Should-Stop: $syslog -# Default-Start: 2 3 4 5 -# Default-Stop: 0 1 6 -# Short-Description: Start evan daemons -# Description: - -### END INIT INFO -# -# Based on Lubomir Bulej's Redhat init script. - -DAEMON="/root/bin/evan" -PIDFILE="/var/lock/evan" -NAME="evan" -DESC="evan daemons" -TCONF="/etc/evan" - -test -f $DAEMON || exit 0 - -[ -r /etc/default/evan ] && . /etc/default/evan - - -start() { - [ -e $PIDFILE ] && echo "$PIDFILE already exists" && return - $DAEMON $EXTRA -d "$@" & - echo $(($$+1)) > $PIDFILE #TODO fix this ugly hack! -} -stop() { - [ ! -e $PIDFILE ] && echo "$PIDFILE does not exist" && return - kill `cat $PIDFILE` - #killall evan - rm $PIDFILE -} - -reload() { - echo "do nothing" - # do nothing -} - -restart() { - stop "$@" - start "$@" -} - -case "$1" in - start) - echo -n "Starting $DESC:" - start - ;; - stop) - echo -n "Stopping $DESC:" - stop - ;; - reload|force-reload) - echo -n "Reloading $DESC configuration:" - reload - ;; - restart) - echo -n "Restarting $DESC:" - restart - ;; - *) - echo "Usage: /etc/init.d/$NAME {start|stop|reload|restart|force-reload}" - exit 1 - ;; -esac -echo "done" -exit 0 |
