summaryrefslogtreecommitdiffstats
path: root/service/instance.h
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-02-26 12:27:39 +0100
committerJo-Philipp Wich <jow@openwrt.org>2015-02-26 14:34:18 +0100
commit9851e517f1c3e55228e2fdde913c9cf0b87a4bc7 (patch)
tree9c85993f55b0d39892791ba833428fddb506b214 /service/instance.h
parent4bccbfa967d756b8c84a62ea4752e936d8545a73 (diff)
downloadunitd-9851e517f1c3e55228e2fdde913c9cf0b87a4bc7.tar
unitd-9851e517f1c3e55228e2fdde913c9cf0b87a4bc7.zip
procd: support relayoing daemon stdout/stderr to syslog
This commit adds support to procd for relaying stdout and stderr streams to the system log. That is mainly useful for services not using syslog, e.g. uhttpd. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org>
Diffstat (limited to 'service/instance.h')
-rw-r--r--service/instance.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/service/instance.h b/service/instance.h
index f76e795..56ce797 100644
--- a/service/instance.h
+++ b/service/instance.h
@@ -17,6 +17,7 @@
#include <libubox/vlist.h>
#include <libubox/uloop.h>
+#include <libubox/ustream.h>
#include "../utils/utils.h"
#define RESPAWN_ERROR (5 * 60)
@@ -45,6 +46,8 @@ struct service_instance {
struct blob_attr *config;
struct uloop_process proc;
struct uloop_timeout timeout;
+ struct ustream_fd stdout;
+ struct ustream_fd stderr;
struct blob_attr *command;
struct blob_attr *trigger;