Cannot restart gvmd.service on version 21.4
Any suggestions on how I can get it back to working?
Tried rebuilding and ended un with this error
The directory /run/gvmd/gvm-checking does not even exist as it should be.
Without knowing the error details from the log I can only guess.
Maybe it is again an issue with the forking mode of systemd? You could try to change the service file to
[Unit]
Description=Greenbone Vulnerability Manager daemon (gvmd)
After=network.target networking.service postgresql.service ospd-openvas.service
Wants=postgresql.service ospd-openvas.service
Documentation=man:gvmd(8)
ConditionKernelCommandLine=!recovery
[Service]
Type=exec
User=gvm
PIDFile=${GVMD_PID_PATH}
RuntimeDirectory=gvmd
RuntimeDirectoryMode=2775
ExecStart=${SBINDIR}/gvmd --osp-vt-update=/run/ospd/ospd-openvas.sock --listen-group=gvm -f
Restart=always
TimeoutStopSec=10
[Install]
WantedBy=multi-user.target
Had a quick look at the gvmd
sources too. gvm-checking
is a lock file generated by gvmd
. That means in your case /run/gvmd
does not exist (it should be created by systemd automatically) or has the wrong permissions (if not created by systemd).