Add service logging

Adds an extra 'log' parameter to services that routes STDOUT and STDERR to syslog.
Uses a PTY rather than a pipe, as this prevents log messages hanging around in a buffer indefinitely.
This commit is contained in:
Patrick Stewart committed 2016-04-13 22:09:05 +01:00
1 parent 3de9e4e5db
commit ec2505191b
2 files changed
+33 -2

No files matched your search

+2
View File
@@ -101,6 +101,8 @@ typedef struct svc {
inetd_t inetd;
int stdin;
int log;
/* Identity */
char username[MAX_USER_LEN];
char group[MAX_USER_LEN];