[OpenWrt-Devel] [PATCH openwrt] procd: allow passing optional group instance parameter
Michael Heimpold
mhei at heimpold.de
Fri Mar 29 18:55:04 EDT 2019
Signed-off-by: Michael Heimpold <mhei at heimpold.de>
---
package/system/procd/files/procd.sh | 5 +++--
1 file changed, 3 insertions(+), 2 deletions(-)
diff --git a/package/system/procd/files/procd.sh b/package/system/procd/files/procd.sh
index 72f25fe0c0..88114cee2a 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
#
# No space separation is done for arrays/tables - use one function argument per command line argument
@@ -249,7 +250,7 @@ _procd_set_param() {
reload_signal)
json_add_int "$type" $(kill -l "$1")
;;
- pidfile|user|seccomp|capabilities)
+ pidfile|user|group|seccomp|capabilities)
json_add_string "$type" "$1"
;;
stdout|stderr|no_new_privs)
--
2.17.1
_______________________________________________
openwrt-devel mailing list
openwrt-devel at lists.openwrt.org
https://lists.openwrt.org/mailman/listinfo/openwrt-devel
More information about the openwrt-devel
mailing list