Switch gsad.service unit file from Type=forking to Type=exec
Why:
systemd appears to lose track of the gsad process when using Type=forking and become unable to stop the service, which then prevents the service from being later restarted (because it was never actually stopped).
How:
I've been running this configuration across multiple systems for a while, and
Type=forking
leads to problems (eg: https://forum.greenbone.net/t/gsad-service-activating/12993/13) and is unnecessary since gsad has a--foreground
option.What:
Switch gsad.service unit file from
Type=forking
toType=exec
Why:
systemd appears to lose track of the gsad process when using
Type=forking
and become unable to stop the service, which then prevents the service from being later restarted (because it was never actually stopped).How:
I've been running this configuration across multiple systems for a while, and
Checklist: