aboutsummaryrefslogtreecommitdiff
path: root/subsonic-installer-debian/src/DEBIAN/prerm
diff options
context:
space:
mode:
Diffstat (limited to 'subsonic-installer-debian/src/DEBIAN/prerm')
-rw-r--r--subsonic-installer-debian/src/DEBIAN/prerm8
1 files changed, 8 insertions, 0 deletions
diff --git a/subsonic-installer-debian/src/DEBIAN/prerm b/subsonic-installer-debian/src/DEBIAN/prerm
new file mode 100644
index 00000000..e15501e5
--- /dev/null
+++ b/subsonic-installer-debian/src/DEBIAN/prerm
@@ -0,0 +1,8 @@
+#! /bin/sh
+
+set -e
+
+# Stop Subsonic service.
+if [ -e /etc/init.d/subsonic ]; then
+ invoke-rc.d subsonic stop
+fi