On Sun, May 15, 2016 at 01:45:32AM +0200, Adam Borowski wrote: > Too bad, when actually trying to install the package: > > [....] Starting Link Monitor.: lsminvoke-rc.d: initscript lsm, action "start" > failed. > dpkg: error processing package lsm (--install): > subprocess installed post-installation script returned error exit status 1 > Processing triggers for man-db (2.7.5-1) ... > Errors were encountered while processing: > lsm
Failing to uninstall is even worse: Removing lsm (1.0.4-1) ... [....] Stopping Link Monitor.: lsminvoke-rc.d: initscript lsm, action "stop" failed. dpkg: error processing package lsm (--purge): subprocess installed pre-removal script returned error exit status 1 Errors were encountered while processing: lsm Please either use --oknodo in the stop target or otherwise make it handle the "wasn't running" case as success. I see you attempt to do so, but "set -e" breaks that. Meow! -- A tit a day keeps the vet away.