[OpenWrt-Tickets] [OpenWrt] #1945: /etc/rc.d/K* script don't run due to /etc/init.d/rcS running in background
OpenWrt
openwrt-devel at lists.openwrt.org
Sun Jan 13 22:22:13 CET 2008
#1945: /etc/rc.d/K* script don't run due to /etc/init.d/rcS running in background
-------------------------+--------------------------------------------------
Reporter: atomota | Owner: developers
Type: defect | Status: new
Priority: normal | Milestone:
Component: base system | Resolution:
Keywords: |
-------------------------+--------------------------------------------------
Comment (by blackbox at inode.at):
I faced the same proplem on my nslu2. The solution above of
mk144210 at bcm.edu works well.
I find this a serious issue since devices left mounted could cause data
loss. Please apply the simple fix in the trunk and close this ticket soon.
IMO the original rcs.patch is insufficient:
* As atomota noted "just removing the & leaves zombies left and right."
* the additional check of a running syslog daemon isn't nessesary (any
more?) since /etc/rc.d/S01syslog is (now?) the first script executed. (I
haven't checked the file histories, maybe there was a problem with logging
some time ago.)
Instead we simply check wether rcS is used for booting or shutdown/reboot
and add a ''&'' accordingly.
chris
--
Ticket URL: <https://dev.openwrt.org/ticket/1945#comment:5>
OpenWrt <http://openwrt.org>
Opensource Wireless Router Technology
More information about the openwrt-tickets
mailing list