bundlewrap/bundles/mx-puppet-discord/files/service
Franziska Kunsmann d7f578742b
bundles/mx-puppet-discord: put bridge repo into subdirectory
this avoids recreating config and registration on every update, which in turn
avoids restarting synapse
2020-11-07 09:08:10 +01:00

13 lines
366 B
Text

[Unit]
Description=mx-puppet-discord
After=network.target
[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=on-failure
[Install]
WantedBy=multi-user.target