procd: support pidfile writing.
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 <karlp@etactica.com> SVN-Revision: 48984
This commit is contained in:
parent
05d73a2a73
commit
48e6ccc4e1
1 changed files with 2 additions and 1 deletions
|
@ -19,6 +19,7 @@
|
||||||
# netdev: bound network device (detects ifindex changes)
|
# netdev: bound network device (detects ifindex changes)
|
||||||
# limits: resource limits (passed to the process)
|
# limits: resource limits (passed to the process)
|
||||||
# user info: array with 1 values $username
|
# 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
|
# No space separation is done for arrays/tables - use one function argument per command line argument
|
||||||
#
|
#
|
||||||
|
@ -195,7 +196,7 @@ _procd_set_param() {
|
||||||
nice)
|
nice)
|
||||||
json_add_int "$type" "$1"
|
json_add_int "$type" "$1"
|
||||||
;;
|
;;
|
||||||
user|seccomp|capabilities)
|
pidfile|user|seccomp|capabilities)
|
||||||
json_add_string "$type" "$1"
|
json_add_string "$type" "$1"
|
||||||
;;
|
;;
|
||||||
stdout|stderr|no_new_privs)
|
stdout|stderr|no_new_privs)
|
||||||
|
|
Loading…
Reference in a new issue