Skip to content

Instantly share code, notes, and snippets.

@sammy8806
Created April 17, 2018 17:41
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 sammy8806/e72af0a06466b17d111fff96d70b5963 to your computer and use it in GitHub Desktop.
Save sammy8806/e72af0a06466b17d111fff96d70b5963 to your computer and use it in GitHub Desktop.
Example systemd.service file for a java based ts3 bot
[Unit]
Description=TS3 Server-Query Bot
After=network.target
[Service]
ExecStart=/usr/bin/java -jar /srv/ts3bot/adminbot.jar
RestartSec=5
User=ts3bot
Restart=always
WorkingDirectory=/srv/ts3bot
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment