ansible/roles/matrix-appservice-webhooks/templates/systemd/matrix-appservice-webhooks.service.j2
2019-03-12 18:03:23 +01:00

17 lines
555 B
Django/Jinja

# {{ ansible_managed }}
[Unit]
Description=A bridge between Matrix and WebHooks
After=syslog.target network-online.target mysql.service postgresql.service
Conflicts=shutdown.target
[Service]
Type=simple
User=matrix-appservice-webhooks
Group=matrix-appservice-webhooks
WorkingDirectory=/var/local/matrix-appservice-webhooks/matrix-appservice-webhooks
ExecStart=/usr/bin/nodejs /var/local/matrix-appservice-webhooks/matrix-appservice-webhooks/app.js -c config.yaml -f my_registration_file.yaml -p 9999
Restart=always
[Install]
WantedBy=multi-user.target