• If you need help or want to discuss things, you now can also join us on our Discord Server!
  • A first preview of the unlimited version of SinusBot can be found in the Upcoming Changes thread. A version for Windows will follow, but we don't have a release date, yet.

won't fix sinusbot creates PID

Status
Not open for further replies.
Operating System: Linux (systemd based)
SinusBot Version: 0.9.12
TS3 Version: 3.0.12

Hi there!

I was writing a systemd-service for sinusbot today to make startup of my teamspeak-server a little bit more convenient. I noticed that sinusbot is not creating any PID file, which would complete the sinusbot service much more. Is it possible that the sinusbot, as the teamspeak servers are already doing it, creates a pid file for system control?

Best wishes
 

irgendwr

no longer active, "retired" staff member
is awesome!
V.I.P.
is uber awesome!
Contributor
Insider
Operating System: Linux (systemd based)
SinusBot Version: 0.9.12
TS3 Version: 3.0.12

Hi there!

I was writing a systemd-service for sinusbot today to make startup of my teamspeak-server a little bit more convenient. I noticed that sinusbot is not creating any PID file, which would complete the sinusbot service much more. Is it possible that the sinusbot, as the teamspeak servers are already doing it, creates a pid file for system control?

Best wishes
You could create a pid file yourself if you start the process but there's already a perfectly functioning startscript anyway so you don't need to write it yourself (see wiki or this repo for more)
 
That one's not quite working for me. The control is very laggy and sometimes it won't start properly. I wrote one for myself though which is working pretty decent - also I've got the possibility to attach to the console. For anyone who's interested here the service file

/usr/lib/systemd/system/sinusbot.servcice:
Code:
[Unit]
Description=Teamspeak 3 Music Bot (Sinusbot)
After=network.target teamspeak.service #When a Teamspeak service is defined

[Service]
WorkingDirectory=/home/teamspeak/ts3music
User=teamspeak
Group=teamspeak
Type=forking
WorkingDirectory=/home/teamspeak/ts3music
ExecStart=/usr/bin/screen -L -dmS sinusbot /home/teamspeak/ts3music/sinusbot
ExecStop=/bin/kill -TERM $MAINPID

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