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
|
2019-03-30 13:34:25 +01:00
|
|
|
User={{ service_user }}
|
|
|
|
WorkingDirectory={{ service_path }}
|
2019-02-09 10:02:53 +01:00
|
|
|
Environment="NODE_ENV=production"
|
2019-03-30 13:34:25 +01:00
|
|
|
ExecStart=/usr/bin/nodejs ./app.js
|
2019-02-09 10:02:53 +01:00
|
|
|
Restart=always
|
2019-03-30 13:34:25 +01:00
|
|
|
RestartSec=3
|
2019-02-09 10:02:53 +01:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|