ansible/roles/codimd/templates/systemd/codimd.service.j2
2019-03-30 13:34:25 +01:00

18 lines
370 B
Django/Jinja

# {{ ansible_managed }}
[Unit]
Description=CodiMD
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 ./app.js
Restart=always
RestartSec=3
[Install]
WantedBy=multi-user.target