|Summary:||net-misc/sslh: sslh-fork.c:110:connect: Connection refused|
|Product:||Gentoo Linux||Reporter:||Thomas Deutschmann (RETIRED) <whissi>|
|Component:||Current packages||Assignee:||Michael Palimaka (kensington) <kensington>|
|Package list:||Runtime testing required:||---|
Description Thomas Deutschmann (RETIRED) 2018-09-03 16:36:56 UTC
Comment 1 Thomas Deutschmann (RETIRED) 2018-09-03 16:39:39 UTC
Adding > command_background="yes" to the runscript is doing the trick.
Comment 2 Thomas Deutschmann (RETIRED) 2018-09-03 17:14:39 UTC
I am not yet really happy with it. I created a configuration file an updated DAEMON_OPTS to use "-F/etc/sslh.cfg". I had a syntax error in my config file but runscript didn't detect that sslh died after start. You normally add something like > start_stop_daemon_args="--wait 1000" in that case. But doing that won't work due to > * start-stop-daemon: caught an interrupt which is clashing with the way OpenRC is forcing the service into background. Removing 'command_background' instead and force "--background" as DAEMON_OPTS doesn't work like expected, i.e. sslh doesn't close fd like expected so you will still get any output on the terminal where you started that service. Using "--foreground" requires "command_background" but will prevent any output, including syslog :/
Comment 3 Andreas Sturmlechner 2022-09-15 17:42:24 UTC
Is this bug still relevant with 1.22c?