diff options
author | Michael Heimpold <mhei@heimpold.de> | 2019-04-11 21:01:08 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-05-02 17:38:51 +0200 |
commit | a12ab07e21fd554c558254c145ae9e75a54e964e (patch) | |
tree | b91279fec0f0ed19d5da2ef1b3d80cc335e24e8c /package/system/procd/files/procd.sh | |
parent | 08802d93e2c1362f7b3b0e7ee43cea910568fe7a (diff) | |
download | upstream-a12ab07e21fd554c558254c145ae9e75a54e964e.tar.gz upstream-a12ab07e21fd554c558254c145ae9e75a54e964e.tar.bz2 upstream-a12ab07e21fd554c558254c145ae9e75a54e964e.zip |
procd: allow passing optional syslog facility as instance parameter
Optional syslog facility can be set by adding procd_set_param facility
$myfacility.
While at, also add stdout/stderr documentation.
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
Signed-off-by: Hans Dedecker <dedeckeh@gmail.com> [PKG_SOURCE_VERSION update]
Diffstat (limited to 'package/system/procd/files/procd.sh')
-rw-r--r-- | package/system/procd/files/procd.sh | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index 72f25fe0c0..6115f0702f 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -20,6 +20,9 @@ # limits: resource limits (passed to the process) # user info: array with 1 values $username # pidfile: file name to write pid into +# stdout: boolean whether to redirect commands stdout to syslog (default: 0) +# stderr: boolean whether to redirect commands stderr to syslog (default: 0) +# facility: syslog facility used when logging to syslog (default: daemon) # # No space separation is done for arrays/tables - use one function argument per command line argument # @@ -249,7 +252,7 @@ _procd_set_param() { reload_signal) json_add_int "$type" $(kill -l "$1") ;; - pidfile|user|seccomp|capabilities) + pidfile|user|seccomp|capabilities|facility) json_add_string "$type" "$1" ;; stdout|stderr|no_new_privs) |