aboutsummaryrefslogtreecommitdiff
path: root/packages/ubuntu/debian/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'packages/ubuntu/debian/prerm')
-rwxr-xr-xpackages/ubuntu/debian/prerm14
1 files changed, 14 insertions, 0 deletions
diff --git a/packages/ubuntu/debian/prerm b/packages/ubuntu/debian/prerm
new file mode 100755
index 000000000..58af3b74c
--- /dev/null
+++ b/packages/ubuntu/debian/prerm
@@ -0,0 +1,14 @@
+#!/bin/sh -e
+
+# Only shut the daemon down if we're really removing the package. If this is
+# an upgrade, we will instead do a restart in the postinst... this keeps nprobe
+# from being left shut down for a long time, which could pose problems.
+case "$1" in
+upgrade)
+ ;;
+*)
+ /etc/init.d/nprobe stop
+ ;;
+esac
+
+exit 0 \ No newline at end of file