openwrtv4/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 base-files: remove default /etc/config/network, generate it via board.d instead 2016-01-25 16:30:41 +00:00
hotplug.d/net base-files: evaluate /etc/sysctl.d/* before /etc/sysctl.conf 2018-04-13 10:16:45 +02:00
init.d base-files: make it possible to specify switch led mode 2018-09-29 17:23:11 +02:00
iproute2 base-files: add /etc/iproute2/rt_protos 2017-01-18 13:15:28 +01:00
rc.button base-files: fix off-by-one in counting seconds for factory reset 2018-03-01 08:04:51 +01:00
sysctl.d sysctl: Protect hard/symlinks by default. 2018-05-01 11:19:03 +02:00
uci-defaults base-files: remove /etc/uci-defaults/11_migrate-sysctl 2018-04-13 10:16:45 +02:00
banner merge: release/banner: drop release name and update banner 2017-12-08 19:41:18 +01:00
banner.failsafe base-files: fix links in banner.failsafe 2018-06-18 07:10:15 +02:00
device_info base-files: add URL option for OEM manufacturer info 2015-10-05 10:28:53 +00:00
diag.sh
ethers base-files: create /etc/ethers by default 2018-08-21 15:55:00 +02:00
fstab base-files: remove fstab symlink 2016-06-17 04:13:07 +02:00
group base-files: add "tty" user group 2017-06-26 10:02:20 +02:00
hosts base-files: add /etc/hosts entries for ::1, ff02::1 and ff02::2 2015-09-02 11:54:03 +00:00
inittab image / basefiles: make console password configurable 2016-04-18 21:53:07 +02:00
openwrt_release merge: properly remove %n / %N references 2017-12-09 16:01:14 +01:00
openwrt_version build: adjust version number handling 2016-12-02 16:02:02 +01:00
os-release base-files: Add standard os-release file 2016-06-24 13:52:53 +02:00
passwd
preinit preinit: use only the image config options 2016-08-10 03:04:08 +02:00
profile base-files: provide more tolerant xterm detection 2018-08-29 08:33:54 +02:00
protocols base-files: add DCCP to /etc/protocols 2015-11-15 22:09:13 +00:00
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 the root password should be empty for real, like before 2014-02-21 10:39:14 +00:00
shells
sysctl.conf base-files: move sysctl defaults to /etc/sysctl.d/10-default.conf 2018-04-13 10:16:45 +02:00
sysupgrade.conf