Created attachment 223676 [details] Patch for rc.d/gvmd gvmd expects to find various binaries in PATH, so this should be set to include /usr/local/(bin|sbin) explicitly. If there's a better way to do this, feel free to substitute.
What is the problem if PATH is not defined into rc script?. I think this change is not necessary. PATH is a environment variable and it should include those path by default
(In reply to Jose Alonso Cardenas Marquez from comment #1) /usr/local/bin and /usr/local/sbin are not in the default PATH. Various scripts and external commands run by gvm expects binaries to be in the path, so it has to be set before the daemons start.
Hi, tell me if it is necessary on latest version of gvm. I found ospd_openvas needs it like you reported it in another PR but I don't found problems with gvmd
If you try to download e.g. a PDF or TXT report from gsad, the file coming out is 0 bytes because of the missing PATH. Adding the export PATH... line to the rc script for gvmd, I believe) resolves this.
(In reply to Eirik Oeverby from comment #4) I think this issue is related a missing texlive-texmf installation in your system. I have downloaded pdf reports without problems
(In reply to Jose Alonso Cardenas Marquez from comment #5) No - this is installed. The *only* difference between working and non-working PDF (and some other) report downloads is whether PATH is set in the rc script. Note I use the 'service' command which clears the envionment; if you invoke the rc script directly it will inherit the PATH you have in your shell.