2017-12-08 00:35:52 +01:00
|
|
|
[Unit]
|
2018-07-29 17:18:55 +02:00
|
|
|
Description=__APP__ daemon
|
|
|
|
After=network.target postgresql.service redis-server.service
|
2017-12-08 00:35:52 +01:00
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
|
|
|
Environment=NODE_ENV=production
|
2018-03-26 05:50:46 +02:00
|
|
|
Environment=NODE_CONFIG_DIR=__FINALPATH__/config
|
2017-12-08 00:35:52 +01:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2018-10-01 01:27:20 +02:00
|
|
|
Environment="PATH=__ENV_PATH__"
|
|
|
|
ExecStart=/bin/sh -c ' npm start'
|
2017-12-08 00:35:52 +01:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
2017-12-11 05:28:25 +01:00
|
|
|
StandardOutput=syslog
|
|
|
|
StandardError=syslog
|
2018-03-26 05:50:46 +02:00
|
|
|
SyslogIdentifier=__APP__
|
2017-12-08 00:35:52 +01:00
|
|
|
Restart=always
|
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|