SlackwareThis Forum is for the discussion of Slackware Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
In the rc.d scripts could we do away with the sleep delays when shutting down or reooting? If the delays remain important for edge cases and older hardware, how about defining the delay times in something like /etc/default/sleep-delay?
Thanks.
P.S. Yes, I can manually edit the delays and have done so for many years. Just trying to offer a more elegant solution for all users.
Since you can just add a "0" to the end of a shutdown command to make it do it "now" (which you could also add) I don't see the benefit to the community at large. The reason for the delay isn't just for edge cases - it is to allow time for notification to go out to users and also lets you change your mind and cancel it.
In rc.K there are three five-second sleep loops. There is a five second delay embedded in $FUSER_DELAY.
In rc.6, $FUSER_DELAY=5, there is /bin/sleep 5 for SIGTERM and PCMCIA, sleep 2 for DHCP, /bin/sleep 3 after running sync.
I am ONLY requesting the delays be configurable by users. The defaults would remain the same.
I suggested /etc/default/sleep-delay. Perhaps a file name of /etc/default/shutdown-delay is more appropriate or just /etc/default/shutdown, which could look something like this:
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.