bundles/mx-puppet-discord: add systemd unit file
This commit is contained in:
parent
629c38230c
commit
081fafc64e
2 changed files with 27 additions and 0 deletions
13
bundles/mx-puppet-discord/files/service
Normal file
13
bundles/mx-puppet-discord/files/service
Normal 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
|
|
@ -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',
|
||||
},
|
||||
},
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue