Re: LinuxGSM

这张便签是回复 LinuxGSM 来自 Zemin Jiang - 对比版本
By: Zemin Jiang | 1 年 前 | Syntax: Bash | Views: 121
URL http://paste.wenyinos.com/view/53ecff67

  1. [Unit]
  2. Description=LinuxGSM Teamspeak3 Server
  3. After=network-online.target
  4. Wants=network-online.target
  5. [Service]
  6. Type=forking
  7. User=ts3server
  8. WorkingDirectory=/home/ts3server
  9. ExecStart=/home/ts3server/ts3server start
  10. ExecStop=/home/ts3server/ts3server stop
  11. Restart=no
  12. RemainAfterExit=yes   #Assume that the service is running after main process exits with code 0
  13. [Install]
  14. WantedBy=multi-user.target
  15.  
  16.  
  17.  
  18. sudo systemctl start ts3server # Start the server
  19. sudo systemctl stop ts3server  # Stop the server
  20. sudo systemctl enable ts3server # Enable start on boot
  21. sudo systemctl disable ts3server # Disable start on boot

回复 "Re: LinuxGSM"

这儿你可以回复上面这条便签

captcha