Last active
December 19, 2015 17:38
-
-
Save beeradmoore/5992733 to your computer and use it in GitHub Desktop.
Murmur static script to be in /etc/init.d/murmur
This file contains 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 | |
# | |
# description: Murmur Service Start Script | |
# Ronny Chilinski (its-rc.de), Mai 2008 | |
# Start the service Murmur | |
start() { | |
echo -n $"Starting Murmur server " | |
/home/murmur/murmur-static_x86-1.2.4/murmur.x86 -ini /home/murmur/murmur-static_x86-1.2.4/murmur.ini | |
### Creating the lock file ### | |
touch /var/lock/subsys/murmur | |
#success $"Murmur server startup" | |
echo | |
} | |
# Stop the service Murmur | |
stop() { | |
echo -n $"Stopping Murmur server" | |
killall murmur.x86 | |
rm -f /var/lock/subsys/murmur | |
echo | |
} | |
### main logic ### | |
case "$1" in | |
start) | |
start | |
;; | |
stop) | |
stop | |
;; | |
status) | |
status murmur | |
;; | |
restart|reload|condrestart) | |
stop | |
start | |
;; | |
*) | |
echo $"Usage: $0 {start|stop|restart|reload|status}" | |
exit 1 | |
esac | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment