xmpp-bot/docs/xmpp-bot.service

17 lines
358 B
SYSTEMD
Raw Permalink Normal View History

2019-10-13 03:38:25 +02:00
[Unit]
Description=XMPP Bot
Documentation=https://github.com/nioc/xmpp-bot
After=network.target
[Service]
User=xmpp-bot
2019-11-21 22:38:10 +01:00
WorkingDirectory=/usr/local/bin/xmpp-bot/
ExecStart=/usr/bin/node /usr/local/bin/xmpp-bot/lib/server.js
2019-10-13 03:38:25 +02:00
Restart=on-failure
RestartSec=1000ms
Environment=NODE_ENV=production
SyslogIdentifier=xmpp-bot
[Install]
WantedBy=multi-user.target