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

Server About Auto-Start

mertxgreen

Active member
Hello, my server having crash and When it having crash, It stop. I have to start my server manual. Is there something about auto-start? How can I use auto-start? Can you help me please?
 

Document

Member
Hello. Use systemd unit.

Create file /lib/systemd/system/teaspeak.service and put this config:
Code:
[Unit]
Description=TeaSpeak Server Service
After=network.target

[Service]
Type=forking
WorkingDirectory=/teaspeak
ExecStart=/teaspeak/teastart.sh start
ExecStop=/teaspeak/teastart.sh stop
User=teaspeak
Group=teaspeak
PIDFile=/teaspeak/tpid.pid
Restart=always
RestartSec=30
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=teaspeak

[Install]
WantedBy=multi-user.target
Pay attention to the folder path teaspeak and restart time they may differ
 

mertxgreen

Active member
Hello. Use systemd unit.

Create file /lib/systemd/system/teaspeak.service and put this config:
Code:
[Unit]
Description=TeaSpeak Server Service
After=network.target

[Service]
Type=forking
WorkingDirectory=/teaspeak
ExecStart=/teaspeak/teastart.sh start
ExecStop=/teaspeak/teastart.sh stop
User=teaspeak
Group=teaspeak
PIDFile=/teaspeak/tpid.pid
Restart=always
RestartSec=30
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=teaspeak

[Install]
WantedBy=multi-user.target
Pay attention to the folder path teaspeak and restart time they may differ
Thank you for your help. I create file and I upload it. I hope its gonna be helper for me.
 

mertxgreen

Active member
Hello. Use systemd unit.

Create file /lib/systemd/system/teaspeak.service and put this config:
Code:
[Unit]
Description=TeaSpeak Server Service
After=network.target

[Service]
Type=forking
WorkingDirectory=/teaspeak
ExecStart=/teaspeak/teastart.sh start
ExecStop=/teaspeak/teastart.sh stop
User=teaspeak
Group=teaspeak
PIDFile=/teaspeak/tpid.pid
Restart=always
RestartSec=30
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=teaspeak

[Install]
WantedBy=multi-user.target
Pay attention to the folder path teaspeak and restart time they may differ
It doesnt work any more what should I do?