Message boards : Number crunching : Models and Unix/Linux shutdown
Message board moderation
Author | Message |
---|---|
Send message Joined: 5 Aug 08 Posts: 22 Credit: 501,217 RAC: 0 |
I was reading a thread where a user mentioned that they had boinc installed from their OS repository, so it had start and stop scripts which got run during system boot up and shutdown. This got me to wondering exactly what the shutdown script did. On my Ubuntu box, it looks like it treats it like any other service. It sends a sigterm (signal 15) to the process. The process is expected to catch this signal, perform any cleanup that it needs to do, and exit. At the end of the system shutdown procedure, all remaining processes are sent a sigterm, and the system waits 5 seconds to give them a chance to clean up. It then sends a sigkill (signal 9) which is the ipc equivalent of a beheading, and halts the machine. How do the climate models respond to signal 15? Do they catch it and do clean up before terminating? |
Send message Joined: 5 Aug 04 Posts: 1283 Credit: 15,824,334 RAC: 0 |
How do the climate models respond to signal 15? Do they catch it and do clean up before terminating? There\'s a signal handler built in to the BOINC client which gracefully terminates all running projects (on SIGHUP, SIGINT, SIGQUIT, SIGTERM or SIGPWR). "The ultimate test of a moral society is the kind of world that it leaves to its children." - Dietrich Bonhoeffer |
©2024 cpdn.org