Skip to content

Instantly share code, notes, and snippets.

@beeradmoore
Last active December 19, 2015 17:38
Show Gist options
  • Save beeradmoore/5992733 to your computer and use it in GitHub Desktop.
Save beeradmoore/5992733 to your computer and use it in GitHub Desktop.
Murmur static script to be in /etc/init.d/murmur
#!/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