Hello, i put this code into ini.d
teamspeak.sh from here: https://r4p3.net/threads/scripts-for-ts3-server-autostart-anticrash.24/
And didin't work for accounting just ts3.
teamspeak.sh from here: https://r4p3.net/threads/scripts-for-ts3-server-autostart-anticrash.24/
Code:
#!/bin/sh
### BEGIN INIT INFO
# Provides: teamspeak3
# Required-Start: $local_fs $network
# Required-Stop: $local_fs $network
# Default-Start: 2 3 4 5
# Default-Stop: 0 1 6
# Short-Description:
# Description: Teamspeak 3 Server
#
### END INIT INFO#!/bin/sh
case "$1" in
start)
su qAlex26_teamspeak3_x64 -c "/home/qAlex26_teamspeak3_x64/teamspeak3-server_linux_amd64/./AccountingServerEmulator-Linux"
sleep 10
su qAlex26_teamspeak3_x64 -c "/home/qAlex26_teamspeak3_x64/teamspeak3-server_linux_amd64/./ts3server_startscript.sh start"
;;
stop)
su qAlex26_teamspeak3_x64 -c "/home/qAlex26_teamspeak3_x64/teamspeak3-server_linux_amd64/./ts3server_startscript.sh stop"
su qAlex26_teamspeak3_x64 -c "/home/qAlex26_teamspeak3_x64/teamspeak3-server_linux_amd64/./AccountingServerEmulator-Linux stop"
;;
*)
echo "$0 (start|stop)"
exit 1
;;
esac
exit 0