[FS#860] Parameter term_timeout is ignored in /etc/init.d scripts

LEDE Bugs lede-bugs at lists.infradead.org
Tue Jun 20 09:26:55 PDT 2017

A new Flyspray task has been opened.  Details are below. 

User who did this - helgadeville (helgadeville) 

Attached to Project - LEDE Project
Summary - Parameter term_timeout is ignored in /etc/init.d scripts
Task Type - Bug Report
Category - Base system
Status - Unconfirmed
Assigned To - 
Operating System - All
Severity - High
Priority - Very Low
Reported Version - lede-17.01
Due in Version - Undecided
Due Date - Undecided
Details - Device: TPLINK MR3220 v2.x, LEDE 17.01 stable.

Script in /etc/init.d may define parameter term_timeout, set by procd_set_param option line.
This parameter gets passed to procd.sh and is used by procd to determine how long to wait after SIGTERM before sending SIGKILL.

Sadly, it is ignored due to lack of proper case statement in /lib/funcitions/procd.sh

This is a part of problem behind openvpn beeing killed prematurely when /etc/init.d/openvpn stop is invoked.

An easy patch for procd.sh is attached, confirmed working.

This is related to another bug FS#859 (link below)

One or more files have been attached.

More information can be found at the following URL:

More information about the lede-bugs mailing list