[Unit]
Description=mx-puppet-discord
After=network.target
Requires=postgresql.service

[Service]
User=mx-puppet-discord
Group=mx-puppet-discord
ExecStart=/usr/bin/node /opt/mx-puppet-discord/src/build/index.js -c /opt/mx-puppet-discord/config.yaml -f /opt/mx-puppet-discord/registration.yaml
WorkingDirectory=/opt/mx-puppet-discord/src/
Restart=always
RestartSec=10

[Install]
WantedBy=multi-user.target
