You are not logged in.

#1 2010-01-01 18:42:41

lagagnon
Member
From: an Island in the Pacific...
Registered: 2009-12-10
Posts: 1,087
Website

Any way to optimize shutdown time in the /etc/rc.shutdown script ?

Overall I am really impressed with the boot and shutdown speed of arch. However, on shutdown I noticed a 5 second delay at: "Sending SIGTERM to processes". On looking at /etc/rc.shutdown I see this:

# Terminate all processes
stat_busy "Sending SIGTERM To Processes"
/sbin/killall5 -15 &> /dev/null
/bin/sleep 5
stat_done

There is the 5 second delay. I realize what that scripting is doing and there must be some built in delay to unsure processes are terminated, but is 5 seconds really necessary or is there any way to optimize that part of the script?

Last edited by lagagnon (2010-01-01 18:43:05)


Philosophy is looking for a black cat in a dark room. Metaphysics is looking for a black cat in a dark room that isn't there. Religion is looking for a black cat in a dark room that isn't there and shouting "I found it!". Science is looking for a black cat in a dark room with a flashlight.

Offline

#2 2010-01-01 19:16:30

nblock
Member
From: Austria
Registered: 2008-08-06
Posts: 123
Website

Re: Any way to optimize shutdown time in the /etc/rc.shutdown script ?

hmm, i guess 5 seconds is ok. closing rtorrent for example takes a few seconds on my host.

Offline

Board footer

Powered by FluxBB