As we are developing a complex set of services on Linux, we developed a tool that starts them one by one. One of the many considerations for creating such a tool was the order in which items can be started, but also a way to ensure that on the death of a daemon, the daemon auto-restarts. There are also server wide parameters that are shared between all the services.
However, I have a problem now where shutting down such a system takes time. It can take as much as 10 seconds to shutdown everything.
What I'm wondering is: How long a script defined under /etc/init.d/...
can take to shutdown daemons it is controlling?
Although I would imagine that if we were to break down all of those daemons in separate packages (since startup scripts can now include a list of dependencies…), we would bumped in the exact same problem. So at this point we prefer to keep things the way they are…
Is there a well defined/known amount of time that a shutdown must take at the most to be graceful to all daemons?
Best Answer
No.