summaryrefslogtreecommitdiff
path: root/debian/prerm
diff options
context:
space:
mode:
authorChristian Pointner <equinox@helsinki.at>2011-04-19 14:37:42 (GMT)
committerChristian Pointner <equinox@helsinki.at>2011-04-19 14:37:42 (GMT)
commit6acaf4d7f6969002ab30f049ea7af4afc84ab8d9 (patch)
treeb3e5cd630bd0a88d659b12a66e2f6be8aa2f7073 /debian/prerm
parent9a74b857f449d9a2ac8cca76872a0ad69aec40f4 (diff)
inital debian packages
Diffstat (limited to 'debian/prerm')
-rw-r--r--debian/prerm12
1 files changed, 12 insertions, 0 deletions
diff --git a/debian/prerm b/debian/prerm
new file mode 100644
index 0000000..dcbe4bd
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,12 @@
+#!/bin/sh
+# prerm script for rharchive
+
+set -e
+
+if [ -x "/etc/init.d/rharchive" ] && [ "$1" = remove ]; then
+ if [ -x "`which invoke-rc.d 2>/dev/null`" ]; then
+ invoke-rc.d rharchive stop || true
+ else
+ /etc/init.d/rharchive stop || true
+ fi
+fi