10 Jul 2005 neuro   » (Master)

start-stop-daemon stop and --exec harmful

So, many people agree that stopping daemons in the preinst and restarting them in the postinst is not ideal, because the services have to be offline for the entire length of the upgrade. One can then simply restart the service in the postinst. The problem is if one uses the --exec option of start-stop-daemon when stopping the process, as the inode numbers will no longer match, as the binary has been upgraded. The same problem happens with a system that has prelinked the binaries since the last time the server was restarted. The stop script will always say that nothing is running. This can be a big problem if a commonly used system library has a security hole (say zlib), and you want to restart all of your daemons so that the new, fixed version is being used. But the init scripts all claim that your daemons aren't running...

Latest blog entries     Older blog entries

New Advogato Features

New HTML Parser: The long-awaited libxml2 based HTML parser code is live. It needs further work but already handles most markup better than the original parser.

Keep up with the latest Advogato features by reading the Advogato status blog.

If you're a C programmer with some spare time, take a look at the mod_virgule project page and help us with one of the tasks on the ToDo list!