Advertisement
Guest User

Untitled

a guest
Mar 16th, 2016
101
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.75 KB | None | 0 0
  1. #!/bin/sh
  2.  
  3.  
  4. ### BEGIN INIT INFO
  5. # Provides:             tibiad
  6. # Required-Start:       $all
  7. # Required-Stop:        $all
  8. # Default-Start:        2 3 4 5
  9. # Default-Stop:         0 1 6
  10. # Short-Description:    starts the tibia server at boot
  11. # Description:          start the tibia server every time the pi boots
  12. ### END INIT INFO
  13.  
  14. PATH=/home/pi/forgottenserver
  15.  
  16. case "$1" in
  17.         start)
  18.                 echo "Starting tibia server"
  19.                 cd $PATH
  20.                 ./tfs
  21.                 ;;
  22.         stop)
  23.                 echo "Stopping tibia server"
  24.                 killall tfs
  25.                 ;;
  26.         *)
  27.                 echo "Usage: /etc/init.d/tibiad (start|stop)"
  28.                 exit 1
  29.                 ;;
  30. esac
  31.  
  32. exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement