Comment 3 for bug 809646

Revision history for this message
Soren Hansen (soren) wrote :

I can't speak for Thomas per se, but the old init scripts had a number of shortcomings:

If python-swift has been uninstalled, but not purged, /usr/bin/swift-init will be missing, which will make the init script fail. Hence the check for its existence.

log_daemon_msg does The Right Thing[tm] in terms of providing some output about what is being done. Different distros format these things in different ways (or send them to different file descriptors or something entirely different). The log_*_msg functions defined by lsb are the right way to handle these differences.

I've removed the leftover calls to "swift-init ... $1".

As for stop vs. shutdown. I had no clue swift-init's stop wasn't graceful. I'll replace the calls to stop with calls to shutdown.

I've added back support for "status".

As for why some of the scripts use start-stop-daemon and some don't... I'm not sure. Perhaps Thomas can provide some clarity.