ansible/roles/matrix-appservice-discord/templates/systemd/appservice.service.j2

19 lines
438 B
Text
Raw Normal View History

2019-03-10 11:10:59 +01:00
# {{ ansible_managed }}
[Unit]
Description=A bridge between Matrix and Discord
After=syslog.target network-online.target mysql.service postgresql.service
Conflicts=shutdown.target
[Service]
Type=simple
User={{ service_user }}
WorkingDirectory={{ service_path }}
2019-03-10 11:10:59 +01:00
Environment="NODE_ENV=production"
2019-03-24 12:10:35 +01:00
ExecStart=/usr/bin/nodejs ./build/src/discordas.js -p 9005 -c config.yaml
2019-03-10 11:10:59 +01:00
Restart=always
RestartSec=3
2019-03-10 11:10:59 +01:00
[Install]
WantedBy=multi-user.target