Created
January 18, 2014 17:01
-
-
Save pearofducks/8493174 to your computer and use it in GitHub Desktop.
Eye files for Debian
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# | |
# eye Startup script for Eye monitoring tool. | |
# | |
# chkconfig: - 85 15 | |
# description: eye monitors your system | |
# | |
CONF_DIR=/etc/eye/eye.conf | |
PID=/var/run/eye.pid | |
LOG=/var/log/eye.log | |
PATH=/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin | |
RETVAL=0 | |
source /usr/local/share/chruby/chruby.sh | |
chruby ruby | |
case "$1" in | |
start) | |
eye load $CONF_DIR | |
RETVAL=$? | |
;; | |
stop) | |
eye stop all | |
RETVAL=$? | |
;; | |
restart) | |
eye restart all | |
RETVAL=$? | |
;; | |
status) | |
eye info | |
RETVAL=$? | |
;; | |
*) | |
echo "Usage: eye {start|stop|restart|status}" | |
exit 1 | |
;; | |
esac | |
exit $RETVAL |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Eye.load("./*.eye") |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment