add Restart=on-failure

This commit is contained in:
Andrew A. Vasilyev 2023-05-04 20:32:24 +03:00
parent f5eebbb5fb
commit 80682c5cc5
2 changed files with 2 additions and 0 deletions

View File

@ -13,6 +13,7 @@ ExecReload=/usr/bin/pvescheduler restart
PIDFile=/var/run/pvescheduler.pid
KillMode=process
Type=forking
Restart=on-failure
[Install]
WantedBy=multi-user.target

View File

@ -10,6 +10,7 @@ ExecStop=/usr/bin/pvestatd stop
ExecReload=/usr/bin/pvestatd restart
PIDFile=/run/pvestatd.pid
Type=forking
Restart=on-failure
[Install]
WantedBy=multi-user.target