net-proxy/dante sockd logs a warning when started from /etc/init.d/dante-sockd init script: sockd[1234]: 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] dante-1.4.2-sockd-init
I wrote a refined initd attached
Created attachment 613714 [details] dante-1.4.2-sockd-init I fixed permissions for pidfile
Created attachment 613718 [details] dante-1.4.2-sockd-init moved TMPDIR environment variable
(In reply to Quentin Retornaz from comment #4) > Created attachment 613718 [details] > dante-1.4.2-sockd-init > > moved TMPDIR environment variable Thanks Quentin. Currently shipped init script doesn't actually start service for me and your version did the trick!