procd: support term_timeout parameter

Expose "term_timeout" parameter in procd.sh to allow init scripts to
request a longer termination timeout.

This is required to fix FS#859 in a later commit.

Signed-off-by: Jo-Philipp Wich <jo@mein.io>
This commit is contained in:
Jo-Philipp Wich 2017-06-20 13:44:10 +02:00
parent 124ab1dc0a
commit 2c5f16ecac
2 changed files with 2 additions and 2 deletions

View file

@ -8,7 +8,7 @@
include $(TOPDIR)/rules.mk include $(TOPDIR)/rules.mk
PKG_NAME:=procd PKG_NAME:=procd
PKG_RELEASE:=2 PKG_RELEASE:=3
PKG_SOURCE_PROTO:=git PKG_SOURCE_PROTO:=git
PKG_SOURCE_URL=$(LEDE_GIT)/project/procd.git PKG_SOURCE_URL=$(LEDE_GIT)/project/procd.git

View file

@ -213,7 +213,7 @@ _procd_set_param() {
json_add_string "" "$@" json_add_string "" "$@"
json_close_array json_close_array
;; ;;
nice) nice|term_timeout)
json_add_int "$type" "$1" json_add_int "$type" "$1"
;; ;;
reload_signal) reload_signal)