Advertisement
Guest User

Untitled

a guest
Sep 25th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.72 KB | None | 0 0
  1.  
  2. #! /bin/sh
  3. ### BEGIN INIT INFO
  4. # Provides: ts3
  5. # Required-Start: $network mysql
  6. ¤ Required-Stop: $network
  7. ¤ Default-Start: 2 3 4 5
  8. ¤ Defualt-Stop: 0 1 6
  9. # Short-Description: Teamspeak3 Server Daemon
  10. # Description: Starts/Stops/Restarts the Teamspeak server Daemon
  11. ¤¤¤ END INIT INFO
  12.  
  13. set -e
  14.  
  15. PATH=/usr/local/sbin:/user/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
  16. DESC="TeamSpeak3 Server"
  17. Name=teamspeak3-server
  18. USER=teamspeak3-user
  19. DIR=/opt/teamspeak3-server
  20. OPTIONS=inifile=ts3server.ini
  21. DAEMON=$DIR/ts3server_startscript.sh
  22. #PIDFILE=/var/run/$NAME.pid
  23. SCRIPTNAME=/etc/init.d/$NAME
  24.  
  25. # Greacefully Exit if the package has been removed.
  26. test -x $DAEMON || exit 0
  27.  
  28. sleep 2
  29. sudo -u $USER $DAEMON $1 $OPTIONS
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement