openwrt/package/base-files/files
Linus Kardell 709d080da5 base-files: fix unkillable processes after restart
When restart is run on an init script, the script traps SIGTERM. This is
done as a workaround for scripts named the same name as the program they
start. In that case, the init script process will have the same name as
the program process, and so when the init script runs killall, it will
kill itself. So SIGTERM is trapped to make the init script unkillable.

However, the trap is retained when the init script runs start, and thus
processes started by restart will not respond to SIGTERM, and will thus
be unkillable unless you use SIGKILL. This fixes that by removing the
trap before running start.

Signed-off-by: Linus Kardell <linus@telliq.com>
(cherry picked from commit 2ac1a57677)
2018-11-22 13:55:58 +01:00
..
bin linux-atm: add br2684ctl option to specify the netdev name 2018-01-10 08:08:53 +01:00
etc base-files: fix unkillable processes after restart 2018-11-22 13:55:58 +01:00
lib base-files: drop fwtool_pre_upgrade 2018-08-08 15:42:06 +02:00
rom
sbin base-files: Reintroduce sysupgrade_pre_upgrade hook 2018-10-07 16:42:05 +02:00
usr base-files: remove remaining uses of %N, and drop VERSION_NICK config symbol 2017-12-09 23:27:41 +01:00