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

回复 LinuxGSM rss

标题 提交人 语言 时间
Re: LinuxGSM Zemin Jiang bash 1 年 前.

回复 "LinuxGSM"

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

captcha