Skip to content

Instantly share code, notes, and snippets.

@rroemhild
Created May 11, 2016 22:14
Show Gist options
  • Save rroemhild/6c2c70b659741ab2ba9ba6f5f8be9f46 to your computer and use it in GitHub Desktop.
Save rroemhild/6c2c70b659741ab2ba9ba6f5f8be9f46 to your computer and use it in GitHub Desktop.
Errbot systemd service
[Unit]
Description=Errbot
After=network.target
[Service]
Type=forking
User=errbot
Environment="CONFIGFILE=/etc/errbot/config.py"
ExecStart=/usr/local/bin/errbot --daemon --config $CONFIGFILE
ExecStop=/bin/kill -SIGINT $MAINPID
Restart=on-failure
[Install]
WantedBy=multi-user.target
@pirxthepilot
Copy link

Thanks for this!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment