projects
/
openwrt
/
openwrt.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
05d73a2
)
procd: support pidfile writing.
author
John Crispin
<
[email protected]
>
Thu, 10 Mar 2016 19:11:17 +0000
(19:11 +0000)
committer
John Crispin
<
[email protected]
>
Thu, 10 Mar 2016 19:11:17 +0000
(19:11 +0000)
procd from revision
b12bb150ed38a4409bef5127c77b060ee616b860
supports
writing a pidfile. This adds support for setting that parameter with
standard init script hooks:
procd_set_param pidfile /var/run/someprocess.pid
Signed-off-by: Karl Palsson <
[email protected]
>
SVN-Revision: 48984
package/system/procd/files/procd.sh
patch
|
blob
|
history
diff --git
a/package/system/procd/files/procd.sh
b/package/system/procd/files/procd.sh
index 78b01627d8cfa5d7c16ee54abe05b2b19b48815d..65195610557eb48f4e778a59510b15fc072f7c6f 100644
(file)
--- a/
package/system/procd/files/procd.sh
+++ b/
package/system/procd/files/procd.sh
@@
-19,6
+19,7
@@
# netdev: bound network device (detects ifindex changes)
# limits: resource limits (passed to the process)
# user info: array with 1 values $username
+# pidfile: file name to write pid into
#
# No space separation is done for arrays/tables - use one function argument per command line argument
#
@@
-195,7
+196,7
@@
_procd_set_param() {
nice)
json_add_int "$type" "$1"
;;
- user|seccomp|capabilities)
+
pidfile|
user|seccomp|capabilities)
json_add_string "$type" "$1"
;;
stdout|stderr|no_new_privs)