If I can suggest, keep it simple. if the service is disable :
enable start if stopped upgrade stop if was stopped disable User will find package upgraded but in the same state as he left it. If it's enabled, just check before if the service is loaded and upgrade. I think it's important to give users an updated package, ready to use, as he left it. Thanks for your work! -- You received this bug notification because you are a member of Ubuntu Bugs, which is subscribed to Ubuntu. https://bugs.launchpad.net/bugs/1592669 Title: postinst fails when daemon is not running (or is disabled by policy- rc.d) To manage notifications about this bug go to: https://bugs.launchpad.net/ubuntu/+source/mysql-5.7/+bug/1592669/+subscriptions -- ubuntu-bugs mailing list [email protected] https://lists.ubuntu.com/mailman/listinfo/ubuntu-bugs
