Really fix package initial installation when PID1 is systemd (Closes: #747863)
This commit is contained in:
parent
64e656ba48
commit
5dc71af109
6 changed files with 53 additions and 2 deletions
7
debian/nut-server.prerm
vendored
7
debian/nut-server.prerm
vendored
|
|
@ -4,6 +4,13 @@
|
|||
# because we don't want the daemon to be
|
||||
# stopped during an upgrade
|
||||
|
||||
handle_start_failure () {
|
||||
# The MODE defined in /etc/nut/nut.conf shouldn't affect the exit code when the
|
||||
# daemon is stopped. If it fails to stop, the maintainer script should fail
|
||||
# too.
|
||||
return 1
|
||||
}
|
||||
|
||||
case "$1" in
|
||||
|
||||
remove)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue