I created an upstart-conf to easily start the bot with a simple "start ts3-musicbot":
Code:
# -*- upstart -*-
description "ts3-musicbot"
author "Thor77 <thor77.org>"
start on (networking)
stop on runlevel [!2345]
respawn
exec xinit /opt/ts3soundboard/ts3bot -- /usr/bin/Xvfb :1 -screen 0 800x600x16 -ac
IMPORTANT: This will start the bot as root, you should create an own user for the bot and add "setuid <username>" over "respawn".
Save this at
Code:
/etc/init/ts3-musicbot.conf
now you can start the bot with stop it with and restart it with
Code:
restart ts3-musicbot
It will also start automatically on server-starup.