bundles/mx-puppet-discord: add systemd unit file

This commit is contained in:
Franzi 2020-04-04 18:21:40 +02:00
parent 629c38230c
commit 081fafc64e
Signed by: kunsi
GPG key ID: 12E3D2136B818350
2 changed files with 27 additions and 0 deletions

View file

@ -0,0 +1,13 @@
[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/build/index.js -c config.yaml
WorkingDirectory=/opt/mx-puppet-discord/
Restart=on-failure
[Install]
WantedBy=multi-user.target

View file

@ -17,6 +17,12 @@ files = {
'action:mx-puppet-discord_generate_registration',
},
},
'/etc/systemd/system/mx-puppet-discord.service': {
'source': 'service',
'triggers': {
'action:systemd-reload',
},
}
}
git_deploy = {
@ -67,3 +73,11 @@ actions = {
'triggered': True,
},
}
svc_systemd = {
'mx-puppet-discord': {
'needs': {
'file:/etc/systemd/system/mx-puppet-discord.service',
},
},
}