ansible/roles/codimd/templates/systemd/codimd.service.j2

20 lines
388 B
Text
Raw Normal View History

2019-02-19 11:10:05 +01:00
# {{ ansible_managed }}
2019-02-09 10:02:53 +01:00
[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