SHARE
TWEET

Untitled

a guest Jul 17th, 2019 56 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. #!/bin/sh
  2. ### BEGIN INIT INFO
  3. # Provides:         teamspeak3
  4. # Required-Start:   $local_fs $network
  5. # Required-Stop:    $local_fs $network
  6. # Default-Start:    2 3 4 5
  7. # Default-Stop:     0 1 6
  8. # Description:      Teamspeak 3 Server
  9. ### END INIT INFO
  10.  
  11.  
  12.  
  13. ######################################
  14. # Customize values for your needs: "User"; "DIR"
  15.  
  16. USER="ts"
  17. DIR="/home/ts"
  18.  
  19. ###### Teamspeak 3 server start/stop script ######
  20.  
  21. case "$1" in
  22. start)
  23. su $USER -c "${DIR}/ts3server_startscript.sh start"
  24. ;;
  25. stop)
  26. su $USER -c "${DIR}/ts3server_startscript.sh stop"
  27. ;;
  28. restart)
  29. su $USER -c "${DIR}/ts3server_startscript.sh restart"
  30. ;;
  31. status)
  32. su $USER -c "${DIR}/ts3server_startscript.sh status"
  33. ;;
  34. *)
  35. echo "Usage: {start|stop|restart|status}" >&2
  36. exit 1
  37. ;;
  38. esac
  39. exit 0
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
Not a member of Pastebin yet?
Sign Up, it unlocks many cool features!
 
Top