diff options
author | Michael Heimpold <mhei@heimpold.de> | 2019-04-11 21:01:09 +0200 |
---|---|---|
committer | Hans Dedecker <dedeckeh@gmail.com> | 2019-05-02 17:39:16 +0200 |
commit | 218b1bbecde5d8d86db0f1a9ab7c1bd5a9c53b5f (patch) | |
tree | 853874d39416458d0bdb7f8ab8ac82d3a61e0126 /package/system/procd/files/procd.sh | |
parent | a12ab07e21fd554c558254c145ae9e75a54e964e (diff) | |
download | upstream-218b1bbecde5d8d86db0f1a9ab7c1bd5a9c53b5f.tar.gz upstream-218b1bbecde5d8d86db0f1a9ab7c1bd5a9c53b5f.tar.bz2 upstream-218b1bbecde5d8d86db0f1a9ab7c1bd5a9c53b5f.zip |
procd: allow passing optional group instance parameter
Sometimes is desirable to run a process with a specific group id
instead of the default one which is derived from passwd entry.
This can be achived now by using procd_set_param group $mygroup.
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, 3 insertions, 2 deletions
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh index 6115f0702f..b49b2b9d01 100644 --- a/package/system/procd/files/procd.sh +++ b/package/system/procd/files/procd.sh @@ -18,7 +18,8 @@ # file: configuration files (array) # netdev: bound network device (detects ifindex changes) # limits: resource limits (passed to the process) -# user info: array with 1 values $username +# user: $username to run service as +# group: $groupname to run service as # 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) @@ -252,7 +253,7 @@ _procd_set_param() { reload_signal) json_add_int "$type" $(kill -l "$1") ;; - pidfile|user|seccomp|capabilities|facility) + pidfile|user|group|seccomp|capabilities|facility) json_add_string "$type" "$1" ;; stdout|stderr|no_new_privs) |