From: Richard Kettlewell Date: Sat, 10 Dec 2011 22:35:47 +0000 (+0000) Subject: New --managed option for use when running under a daemon supervisor. X-Git-Tag: v0.2.0~2 X-Git-Url: https://www.chiark.greenend.org.uk/ucgi/~mdw/git/secnet/commitdiff_plain/7b1a9fb74228564b5ee07b48c042ee7b9a2260f1?hp=7b1a9fb74228564b5ee07b48c042ee7b9a2260f1 New --managed option for use when running under a daemon supervisor. The effect is secnet is told that it is running as a daemon right from the start, so it knows to follow the logging rules for daemons but not to fork. The conflation of daemonization with dropping privilege is also unpicked by this patch. Most importantly this ensures that errors from PHASE_GETRESOURCES operations such as 'route' commands is sent to the logfile (or syslog). Signed-off-by: Richard Kettlewell ---