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