[OpenWrt-Devel,4/4] procd: allow passing optional group instance parameter
diff mbox series

Message ID 20190411190111.11738-4-mhei@heimpold.de
State Accepted
Delegated to: Hans Dedecker
Headers show
Series
  • procd enhancements
Related show

Commit Message

Michael Heimpold April 11, 2019, 7:01 p.m. UTC
Signed-off-by: Michael Heimpold <mhei@heimpold.de>
---
 package/system/procd/files/procd.sh | 5 +++--
 1 file changed, 3 insertions(+), 2 deletions(-)

Patch
diff mbox series

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)