openwrt/package/base-files/files/etc
Linus Kardell 2ac1a57677 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>
2018-11-22 13:15:10 +01:00
..
board.d
hotplug.d/net
init.d base-files: make it possible to specify switch led mode 2018-09-29 17:23:11 +02:00
iproute2
rc.button
sysctl.d sysctl: Protect hard/symlinks by default. 2018-05-01 11:19:03 +02:00
uci-defaults
banner
banner.failsafe base-files: fix links in banner.failsafe 2018-06-18 07:10:15 +02:00
device_info
diag.sh
ethers base-files: create /etc/ethers by default 2018-08-21 15:55:00 +02:00
fstab
group
hosts
inittab
openwrt_release
openwrt_version
os-release
passwd
preinit
profile base-files: provide more tolerant xterm detection 2018-08-29 08:33:54 +02:00
protocols
rc.common base-files: fix unkillable processes after restart 2018-11-22 13:15:10 +01:00
rc.local
services base-files: /etc/services: add missing 'rpcbind' alias 2018-09-10 10:44:03 +02:00
shadow
shells
sysctl.conf
sysupgrade.conf