On Sun, Mar 1, 2015 at 8:10 PM, Melkor Lord <[email protected]> wrote: > What puzzles me is the difference > in behaviour between debug mode and non-debug mode. What could possibly > happen after upsd detaches itself from the calling shell that make upsd fail > to handle SSL stuff while working flawlessly without detaching?
I'm thinking it's something here: https://github.com/networkupstools/nut/blob/master/common/common.c#L114 > I thought start-stop-daemon was involved because it closes stdin/stdout file > descriptors after exec()'ing the daemon. I tried "--no-close" option to no > avail. After that, I validated the init script working fine with > UPSD_OPTIONS="-D" in /etc/nut/nut.conf. Not strictly the same as closing the file descriptors, but I tried the following: /sbin/upsd -D >/dev/null 2>&1 < /dev/null And it still worked. So I need to recompile with debugging symbols - the Ubuntu packages did not have them. -- - Charles Lepple _______________________________________________ Nut-upsuser mailing list [email protected] http://lists.alioth.debian.org/cgi-bin/mailman/listinfo/nut-upsuser

