18 lines
438 B
Django/Jinja
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
|