Skip to content

Instantly share code, notes, and snippets.

@vico93
Created May 11, 2018 07:25
Show Gist options
  • Save vico93/60606e53174b9e0c4807d0416b8aaa7e to your computer and use it in GitHub Desktop.
Save vico93/60606e53174b9e0c4807d0416b8aaa7e to your computer and use it in GitHub Desktop.
[Unit]
Description=Discord RSS bot
After=multi-user.target
[Service]
WorkingDirectory=/mnt/usb0/.discord_bots/discord-rss/
ExecStart=/usr/bin/node /mnt/usb0/.discord-bots/discord-rss/server.js
User=master
Group=master
Type=idle
Restart=always
RestartSec=15
StandardOutput=syslog
StandardError=syslog
SyslogIdentifier=discord-rss
[Install]
WantedBy=multi-user.target
May 11 04:25:09 ZEUS systemd[1]: discord-rss.service: Service hold-off time over, scheduling restart.
May 11 04:25:09 ZEUS systemd[1]: Stopped Discord RSS bot.
May 11 04:25:09 ZEUS systemd[1]: Started Discord RSS bot.
May 11 04:25:09 ZEUS discord-rss[1160]: internal/modules/cjs/loader.js:550
May 11 04:25:09 ZEUS systemd[1]: discord-rss.service: Main process exited, code=exited, status=1/FAILURE
May 11 04:25:09 ZEUS systemd[1]: discord-rss.service: Unit entered failed state.
May 11 04:25:09 ZEUS systemd[1]: discord-rss.service: Failed with result 'exit-code'.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment