Tiny Core Linux

Tiny Core Base => TCB Talk => Topic started by: ixbrian on July 03, 2011, 09:19:47 PM

Title: Tinycore rc.shutdown script
Post by: ixbrian on July 03, 2011, 09:19:47 PM
At the end of the /etc/init.d/rc.shutdown script is a call to the "usleep_progress" function which has the system sleep for 2 seconds.   Is there practical need for a delay here, or could it be removed for a faster shutdown?  

Also, are the 1 second sleeps needed between the calls to sync?   sync doesn't return until the sync has been completed, so I'm wondering if the sleeps could be safely removed.  

Thanks,
Brian
Title: Re: Tinycore rc.shutdown script
Post by: roberts on July 05, 2011, 01:54:12 PM
OK. I will revisit rc.shutdown for v3.8 rc testing.
Title: Re: Tinycore rc.shutdown script
Post by: kevinisca on August 17, 2011, 05:13:38 PM
Hi

Not sure if this is connected to any changes you have done but for me 3.8 has started hanging on shutdown. Not all the time. Sometimes this is just a very slow 20 second shutdown and sometimes having to physically poweroff. This was not a problem in 3.6 - I skipped 3.7!! Let me know if there is anything I can check and post to help.

Cheers
Kevin

Assus eee 901
Title: Re: Tinycore rc.shutdown script
Post by: ixbrian on August 17, 2011, 09:44:46 PM
Hi

Not sure if this is connected to any changes you have done but for me 3.8 has started hanging on shutdown. Not all the time. Sometimes this is just a very slow 20 second shutdown and sometimes having to physically poweroff. This was not a problem in 3.6 - I skipped 3.7!! Let me know if there is anything I can check and post to help.

Cheers
Kevin

Assus eee 901

Can you provide some additional information such as what is displayed on the screen when it hangs?   
Title: Re: Tinycore rc.shutdown script
Post by: kevinisca on August 18, 2011, 06:53:39 PM
Hi

Not very useful I'm afraid. Problem is not consistent. It usually seems to hang on the Logout optionbox for longer than normal, wbar will quit, mouse freezes and then if I lucky it will eventually shutdown, If not it hangs on an empty desktop with a frozen mouse. Running sudo poweroff seems to work without this problem.

Is this any use?

Cheerio
Kevin
Title: Re: Tinycore rc.shutdown script
Post by: ixbrian on August 18, 2011, 07:18:01 PM
Are you doing a backup at shutdown?   If so, how big is your backup file?
Title: Re: Tinycore rc.shutdown script
Post by: kevinisca on August 23, 2011, 06:33:35 PM
Hi

Sorry about delay ... off camping :)

No back up! Persistent home and tce set.

Cheerio
Kevin