aboutsummaryrefslogtreecommitdiffstats
path: root/package/system/procd/files
diff options
context:
space:
mode:
authorJo-Philipp Wich <jow@openwrt.org>2015-02-26 13:42:47 +0000
committerJo-Philipp Wich <jow@openwrt.org>2015-02-26 13:42:47 +0000
commitfd670d27568cb157a5a0620662309cea525a26f2 (patch)
treecd86ef8a4fe453f761633bb91ed93b48e1d8de75 /package/system/procd/files
parente0f48f8d30e52825ece5c4938d8fe32d5842377d (diff)
downloadupstream-fd670d27568cb157a5a0620662309cea525a26f2.tar.gz
upstream-fd670d27568cb157a5a0620662309cea525a26f2.tar.bz2
upstream-fd670d27568cb157a5a0620662309cea525a26f2.zip
procd: add support for relaying daemon stdio to syslog
Procd enabled init scripts can now specify: procd_set_param stdout 1 procd_set_param stderr 1 ... to relay their respective standard IO streams to the system log. Signed-off-by: Jo-Philipp Wich <jow@openwrt.org> SVN-Revision: 44547
Diffstat (limited to 'package/system/procd/files')
-rw-r--r--package/system/procd/files/procd.sh3
1 files changed, 3 insertions, 0 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index be1d888a19..78352c0b76 100644
--- a/package/system/procd/files/procd.sh
+++ b/package/system/procd/files/procd.sh
@@ -143,6 +143,9 @@ _procd_set_param() {
user)
json_add_string "$type" "$1"
;;
+ stdout|stderr)
+ json_add_boolean "$type" "$1"
+ ;;
esac
}