Skip to content

Instantly share code, notes, and snippets.

@w7rus
Created November 27, 2017 13:21
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save w7rus/b486fb7206e9087558831bb813e9d0ef to your computer and use it in GitHub Desktop.
Save w7rus/b486fb7206e9087558831bb813e9d0ef to your computer and use it in GitHub Desktop.
[Unit]
Description=Sinusbot, the Teamspeak 3 and Discord music bot. This will load sinusbot inside screen
After=syslog.target network.target
[Service]
User=sinusbot
Group=sinusbot
ExecStartPre=/bin/rm -f /tmp/.sinusbot.lock
ExecStopPost=/bin/rm -f /tmp/.sinusbot.lock
ExecStart=/usr/bin/screen -DmS sinusbot /opt/sinusbot/sinusbot
WorkingDirectory=/opt/sinusbot
Type=simple
KillSignal=2
SendSIGKILL=yes
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment