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
|
2019-03-30 13:26:20 +01:00
|
|
|
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
|
2019-03-30 13:26:20 +01:00
|
|
|
RestartSec=3
|
2019-03-10 11:10:59 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|