Bug 7502

Summary: Allow ZCIP to log to syslog even if running in the foreground
Product: Busybox Reporter: Michel Stam <m.stam>
Component: NetworkingAssignee: unassigned
Status: NEW ---    
Severity: enhancement CC: busybox-cvs
Priority: P5    
Version: unspecified   
Target Milestone: ---   
Hardware: All   
OS: All   
Host: Target:
Build:
Attachments: Patch to force syslog logging

Description Michel Stam 2014-10-01 13:01:00 UTC
Created attachment 5720 [details]
Patch to force syslog logging

OpenWRT nowadays uses procd to start processes. These processes typically run in the foreground so they can be auto-restarted when the process crashes/exits.

Unfortunately, zcip does not log a lot of messages to syslog, and when running in foreground it does not log any messages to syslog at all (they are printed on the console).

This patch allows zcip to log to syslog if -s is specified.

Note; the attached patch assumes https://bugs.busybox.net/show_bug.cgi?id=7496 has been applied as well.