Permalink
Browse files

ignore failures on stop

  • Loading branch information...
1 parent 6d21495 commit b3986e1ae346039a4ef298c2a0802f6caf2d304f @joemiller joemiller committed Mar 21, 2013
Showing with 2 additions and 2 deletions.
  1. +1 −1 pkg_scripts/deb/prerm
  2. +1 −1 pkg_scripts/rpm/preun
@@ -40,7 +40,7 @@ stop_sensu_services() {
fi
fi
if [ -f "/etc/systemd/system/sensu-runsvdir.service" ]; then
- systemctl stop sensu-runsvdir.service
+ systemctl stop sensu-runsvdir.service || true
fi
}
@@ -29,6 +29,6 @@ if [ $1 -eq 0 ]; then
fi
fi
if [ -f "/etc/systemd/system/sensu-runsvdir.service" ]; then
- systemctl stop sensu-runsvdir.service
+ systemctl stop sensu-runsvdir.service || true
fi
fi

0 comments on commit b3986e1

Please sign in to comment.