Franziska Kunsmann
d7f578742b
this avoids recreating config and registration on every update, which in turn avoids restarting synapse
13 lines
366 B
Text
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
|