ansible/roles/matrix-appservice-discord/templates/systemd/appservice.service.j2
2019-03-30 13:26:20 +01:00

18 lines
438 B
Django/Jinja

# {{ 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 }}
Environment="NODE_ENV=production"
ExecStart=/usr/bin/nodejs ./build/src/discordas.js -p 9005 -c config.yaml
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target