2017-09-05 17:47:31 +02:00
|
|
|
[Unit]
|
2020-06-29 15:25:47 +02:00
|
|
|
Description=Wetty Web Terminal
|
2017-09-05 17:47:31 +02:00
|
|
|
After=network.target
|
|
|
|
|
|
|
|
[Service]
|
|
|
|
Type=simple
|
2021-05-12 00:42:40 +02:00
|
|
|
Environment=NODE_ENV=production
|
2017-09-05 17:47:31 +02:00
|
|
|
User=__APP__
|
|
|
|
Group=__APP__
|
2021-05-18 23:12:45 +02:00
|
|
|
WorkingDirectory=__FINALPATH__/
|
|
|
|
ExecStart=__YNH_NODE__ . --conf ./config.json5
|
2021-02-07 12:20:53 +01:00
|
|
|
TimeoutStopSec=20
|
|
|
|
KillMode=mixed
|
|
|
|
Restart=always
|
|
|
|
RestartSec=2
|
2017-09-05 17:47:31 +02:00
|
|
|
|
2021-05-12 00:42:40 +02:00
|
|
|
StandardOutput=append:/var/log/__APP__/__APP__.log
|
|
|
|
StandardError=inherit
|
|
|
|
|
2017-09-05 17:47:31 +02:00
|
|
|
[Install]
|
|
|
|
WantedBy=multi-user.target
|