Vesta service is not auto restarting ?
Posted: Wed Oct 30, 2019 2:00 pm
Hi,
I manage many vesta servers and on a regular basis the web interface is not available due to a service issue.
Service status is active, but excited:
in 99.99% of those case, just restarting the service is enough to make it works.
Looking into the service configuration below:
I have found that the restart param is set to =no. Which is not convenient at all in my opinion (I have calls on vesta API that can't work due to this)
I am thinking of editing this , using the always option or perhaps using the watchdog param, but maybe this is set on purpose to avoid issues.
If a dev from Vesta reads me (or someone well informed), Is there a specific reason for setting this to not restart ?
Is it safe to change it to "always" ?
Thank you for reading me.
I manage many vesta servers and on a regular basis the web interface is not available due to a service issue.
Service status is active, but excited:
Code: Select all
vesta.service - SYSV: Run vesta web server
Loaded: loaded (/etc/rc.d/init.d/vesta; bad; vendor preset: disabled)
Active: active (exited) since Tue 2019-04-16 01:03:22 CEST; 6 months 14 days ago
Docs: man:systemd-sysv-generator(8)
Looking into the service configuration below:
Code: Select all
[root@app ~]# systemctl cat vesta.service
# /run/systemd/generator.late/vesta.service
# Automatically generated by systemd-sysv-generator
[Unit]
Documentation=man:systemd-sysv-generator(8)
SourcePath=/etc/rc.d/init.d/vesta
Description=SYSV: Run vesta web server
Before=runlevel2.target
Before=runlevel3.target
Before=runlevel4.target
Before=runlevel5.target
Before=shutdown.target
After=network-online.target
After=network.service
Conflicts=shutdown.target
[Service]
Type=forking
Restart=no
TimeoutSec=5min
IgnoreSIGPIPE=no
KillMode=process
GuessMainPID=no
RemainAfterExit=yes
ExecStart=/etc/rc.d/init.d/vesta start
ExecStop=/etc/rc.d/init.d/vesta stop
ExecReload=/etc/rc.d/init.d/vesta reload
I am thinking of editing this , using the always option or perhaps using the watchdog param, but maybe this is set on purpose to avoid issues.
If a dev from Vesta reads me (or someone well informed), Is there a specific reason for setting this to not restart ?
Is it safe to change it to "always" ?
Thank you for reading me.