net-proxy/dante sockd logs a warning when started from /etc/init.d/dante-sockd
sockd: warning: could not open pidfile /var/run/sockd.pid for writing: Permission denied
This is because by default sockd tries to create a pid file on its own
(even though the init script uses start-stop-daemon to do it on its behalf),
which fails since the sockd is running under an unprivileged user id.
Suggest to either change SOCKD_OPT="" to SOCKD_OPT="-p /dev/null" in
/etc/init.d/dante-sockd or to pass "--with-pidfile=/dev/null" to configure script
in the package ebuild so it doesn't try to write a pid file by default
unless explicitly told to.
Created attachment 613594 [details]
I wrote a refined initd attached
Created attachment 613714 [details]
I fixed permissions for pidfile
Created attachment 613718 [details]
moved TMPDIR environment variable