Open pmorch opened 4 years ago
@pmorch From where did you get the Patch? I have faced similar issues, but for me, there is no error itself. The process will just exit. I have been trying to run the server on privileged port (162) via root, but haven't been able to. Have you faced something similar ?
That's surprising that you do not get anything on stderr. I assume it did not go into a logfile/syslog.
Meanwhile, you can run daemons as root if you make them dropping superuser privileges later on.
Thanks for your reply @etingof. With --logging-method=stdout
I'm assuming that it should go to STDOUT. I didn't think to check syslog and I don't know what other logfiles to check. Regardless, with --logging-method=stdout
logging should be directly visible in the terminal, right? It wasn't.
Not knowing any better, I tried running snmpfwd-* as root.
The process exited immediately with error code 1 and no output what so ever, which was a little frurstrating. "What am I doing wrong?"
After this patch:
I saw:
Which allowed me to discover that I needed to run it as non-root and things started working.
It would be better not to have to patch the executable to see the error.