my_webapp_ynh/conf/nodejs-watcher.service
2024-03-10 22:56:08 +01:00

13 lines
249 B
Desktop File

[Unit]
Description=__APP__ NodeJS restarter
After=network.target
StartLimitIntervalSec=10
StartLimitBurst=5
[Service]
Type=oneshot
ExecStart=/usr/bin/systemctl restart __APP__-nodejs.service
Restart=on-failure
[Install]
WantedBy=multi-user.target