Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/bash
- #
- # chkconfig: 35 90 12
- # description: Omniwar server
- #
- # Get function from functions library
- . /etc/init.d/functions
- # Start the service Omniwar
- start() {
- echo -n "Starting Omniwar server:"
- ~/LinuxServer/FPSGame/Binaries/Linux/FPSGameServer-Linux-DebugGame &
- ### Create the lock file ###
- touch /var/lock/subsys/Omniwar
- success $"Omniwar server startup"
- echo
- }
- # Restart the service Omniawr
- stop() {
- echo -n "Stopping Omniwar server:"
- killproc FPSGameServer-Linux-DebugGame
- ### Now, delete the lock file ###
- rm -f /var/lock/subsys/Omniwar
- echo
- }
- ### main logic ###
- case "$1" in
- start)
- start
- ;;
- stop)
- stop
- ;;
- status)
- status FPSGameServer-Linux-DebugGame
- ;;
- restart)
- stop
- start
- ;;
- *)
- echo $"Usage: $0 {start|stop|restart|status}"
- exit 1
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement