Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/bin/sh
- ### BEGIN INIT INFO
- # Provides: tibiad
- # Required-Start: $all
- # Required-Stop: $all
- # Default-Start: 2 3 4 5
- # Default-Stop: 0 1 6
- # Short-Description: starts the tibia server at boot
- # Description: start the tibia server every time the pi boots
- ### END INIT INFO
- PATH=/home/pi/forgottenserver
- case "$1" in
- start)
- echo "Starting tibia server"
- cd $PATH
- ./tfs
- ;;
- stop)
- echo "Stopping tibia server"
- killall tfs
- ;;
- *)
- echo "Usage: /etc/init.d/tibiad (start|stop)"
- exit 1
- ;;
- esac
- exit 0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement