ansible/roles/codimd/templates/systemd/codimd.service.j2
2019-02-09 10:02:53 +01:00

20 lines
434 B
Django/Jinja

# /etc/systemd/system/codimd.service
# Deployed with Aurore Ansible !
[Unit]
Description=CodiMD
After=syslog.target network-online.target mysql.service postgresql.service
Conflicts=shutdown.target
[Service]
Type=simple
User=codimd
Group=codimd
WorkingDirectory=/var/local/codimd/codimd
Environment="NODE_ENV=production"
ExecStart=/usr/bin/nodejs /var/local/codimd/codimd/app.js
Restart=always
[Install]
WantedBy=multi-user.target