Code

collectd-core.collectd.init.d: Catch disabled state in start/restart.
authorSebastian Harl <sh@tokkee.org>
Sun, 15 Jul 2012 09:12:29 +0000 (11:12 +0200)
committerSebastian Harl <sh@tokkee.org>
Sun, 15 Jul 2012 09:12:29 +0000 (11:12 +0200)
commit5fd4903ea0ddbec78be5a241c4de2ddb4a2e14f2
tree7c3f8e62d3c13a056808b744e228057fa8c9e068
parenta4a177cd4708317a1fb36516fd0d6f231618f9d0
collectd-core.collectd.init.d: Catch disabled state in start/restart.

Don't exit with an error status in that case. Amongst others, this fixes an
upgrade of collectd when the daemon is disabled.

Thanks to Florian Ernst for reporting this and Evgeni Golov for providing (an
early) patch!

To let those changes to work correctly, don't use 'set -e' and 'exit 0' (at
the end) in order to let return statuses propagate correctly.

Closes: #681216
debian/changelog
debian/collectd-core.collectd.init.d