cuginosimo
New member
I was inspired by this guide and I tested it on AWS EC2 and it works!
(SOURCE: https://www.howtoforge.com/tutorial/how-to-install-and-use-Tea*Speak-server-on-centos-7/#configuring-systemd-service)
TeaSpeak server can be easily managed using the commands above, it is recommended to setup a systemd service unit so that you can start and manage the server using the service. This will also ensure that the service is automatically started at boot time.
Create a new systemd service file by running the following command.
Populate the file with the following content.
Save the file and exit from the editor. Now you can start Tea*Speak using:
To configure Tea*Speak to automatically start at boot time, use.
To check if Tea*Speak service is started correctly, you can run the following command to check the status of the Tea*Speak service.
(SOURCE: https://www.howtoforge.com/tutorial/how-to-install-and-use-Tea*Speak-server-on-centos-7/#configuring-systemd-service)
TeaSpeak server can be easily managed using the commands above, it is recommended to setup a systemd service unit so that you can start and manage the server using the service. This will also ensure that the service is automatically started at boot time.
Create a new systemd service file by running the following command.
nano /lib/systemd/system/teaspeak.service
Populate the file with the following content.
Code:
[Unit]
Description=TeaSpeak Server Service
After=network.target
[Service]
Type=forking
WorkingDirectory=/home/teaspeak/
ExecStart=/home/teaspeak/teastart.sh start
ExecStop=/home/teaspeak/teastart.sh stop
User=teaspeak
Group=teaspeak
PIDFile=/home/teaspeak/tpid.pid
Restart=always
RestartSec=9
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=teaspeak
[Install]
WantedBy=multi-user.target
Save the file and exit from the editor. Now you can start Tea*Speak using:
systemctl start teaspeak
To configure Tea*Speak to automatically start at boot time, use.
systemctl enable teaspeak
To check if Tea*Speak service is started correctly, you can run the following command to check the status of the Tea*Speak service.
systemctl status teaspeak