Delay gnome shutdown/restart


 
Thread Tools Search this Thread
Operating Systems Linux Delay gnome shutdown/restart
# 8  
Old 12-22-2010
The purpose of running strace on gnome is to show you all the components that run, signal, write to get to the shutdown, places where you could definitely intercept the process and hold it up while the DB update occurs (unless you figure a way to not need the db update).
# 9  
Old 12-22-2010
the question is: what i have to put in strace for debug gnome shutdown process?

I don't understend why if replace the original /sbin/shutdown with a wrapper that insert a delay first then execute /sbin/shutdown.bin (original executable) don't work...
# 10  
Old 12-22-2010
strace will show you how it achieves shutdown without going there.
# 11  
Old 12-22-2010
i am confused...

can you simple get an example of how understand the shutdown with strace?
thanks
# 12  
Old 12-22-2010
strace programname 2> logfile

or, to debug a program that's already running:

strace -ppid 2> logfile
# 13  
Old 12-22-2010
You might need options for following forks and threads, arguments and environment, if it is like truss and tusc. I'd look at the man page through the link above, but I have no LINUX most days lately.

You can usually trace running processes with a pid, and maybe an option, maybe last. It requires your be root or the process owner, and gets scraped off by setuid/sergid exec().
# 14  
Old 12-23-2010
Sorry if I'm interrupting, but why should anyone want to trace and/or modify the way GNOME behaves for an issue like this. GNOME will probably signal init directly, just like shutdown, but without calling the shutdown binary. So the most sensible way, since the script is already started by init, would be to stop it using init too.
Login or Register to Ask a Question

Previous Thread | Next Thread

8 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Loop without a delay

Hi, I am trying to understand what would happen if ther is a loop without any delay like sleep statement, I feel that would add a lot of load onto the CPU. Trying to understand how the load is reduced by the introduction of sleep(). Thanks and regards Zulfi (3 Replies)
Discussion started by: zulfi123786
3 Replies

2. UNIX for Dummies Questions & Answers

Delay with Wget

I have a list of URLs that I need to download in a file. I know I can use the -i option to load the URLs from the file, but how can I make Wget wait a couple secs between each URL download? (4 Replies)
Discussion started by: rlopes
4 Replies

3. Shell Programming and Scripting

Backup & restore Gnome Desktop and all settings in Gnome

Hi I'm looking for scripts to backup & restore Gnome Desktop and all settings in Gnome. (0 Replies)
Discussion started by: ccc
0 Replies

4. Emergency UNIX and Linux Support

Shutdown to a Halt and restart

I've got critical patching this weekend on 6 HP UX machines, back to back and the customer has requested to shutdown, and halt the machines and to bring it up at a later period. The thing is the servers are located offshore and we are just the support team. I have a special login thru a console... (16 Replies)
Discussion started by: hedkandi
16 Replies

5. UNIX for Dummies Questions & Answers

Script to force Oracle database shutdown when shutdown immediate does not work

I have Oracle 9i R2 on AIX 5.2. My Database is running in shared server mode (MTS). Sometimes when I shutdown the database it shutsdown cleanly in 4-5 mints and sometimes it takes good 15-20 minutes and then I get some ora-600 errors and only way to shutdown is by opening another session and... (7 Replies)
Discussion started by: aixhp
7 Replies

6. Solaris

Restart/Shutdown the Solaris from SC>

Hi Experts, I am running solris 9. Sun-Fire 880. How do i shutdowon the whole server using ALOM i.e sc> console. If the server is down or somehow hang How do i Restart from sc> //purple (6 Replies)
Discussion started by: thepurple
6 Replies

7. Programming

Introducing Delay less then a second.

Hi, I have a doubt in introducing a delay in the programs. We know that we do have a sleep() function/api using which we can bring a delay in terms of seconds. A minimum delay can be atleast 1 second. Now I'm bothered about how to introduce a delay that is just less than a second. Like... (3 Replies)
Discussion started by: S.Vishwanath
3 Replies

8. UNIX for Dummies Questions & Answers

Delay in mv

Working on AIX 4.3 I have an active exe that accepts files for processing on our RS6000. Day to day i store these files in a secure place and at the end of the day I mv them one by one. After some reading and ofcourse trial and error i figured out that this helps... mv `ls -l |head -l | awk... (2 Replies)
Discussion started by: buRst
2 Replies
Login or Register to Ask a Question