Using of 'sleep' in rc scripts
![](https://secure.gravatar.com/avatar/d3991b33eaab1a6dd4e6e6b3e1128058.jpg?s=120&d=mm&r=g)
Hello. A problem: Using of 'sleep 1' in /etc/rc.d/* scripts is a bit wired because in first variant we have a useless shit (when process goes to background) and in second we can't be assured that one second is the best time for hardly loaded systems. I think that a good solution will be using of killall with '-w' Yet one problem is bound with 'sleep 5' before sending SIGKILL in /etc/rc.shutdown and /etc/rc.single. Yes, five seconds is the best time for lowend i686 machines. But why i must wait 5 seconds every time, when on my machine all processes can be killed in one second (not by hard reset :))? But in this case it will be good to keep all as it is, i think. Using of killall with '-w' here is not a solution because some programs can ignores SIGTERM... -- Artur Tulyulya (irc: artur_t) NIC-handle: [AT1009-UANIC] UID: 264-264-769 JID: artur@jabber.lafox.net
participants (1)
-
Artur Tulyulya