• Hey Guest, we're evolving the future of TeaSpeak.
    You're invited to join the discussion here!

Completed Start automatically when my VPS is powered on

Status
Not open for further replies.

mola19

Fanatic member
Premium User
Hello,

Does anyone know how to make the server start automatically when my VPS is powered on?

Also, someone knows how to make the server reboot automatically if the server crashes ?

Regards ;)
 

Sporesirius

Well-known member
Create a systemd service:
Code:
[Unit]
Description=NAME
After=network.target

[Service]
WorkingDirectory=/path/to/
User=TEASPEAKUSER
Group=TEASPEAKGROUP
Type=forking
ExecStart=/path/to/teastart.sh start
ExecStop=/path/to/teastart.sh stop
PIDFile=/path/to/tpid.pid
RestartSec=10
Restart=always

[Install]
WantedBy=multi-user.target
 
Status
Not open for further replies.