[Python-apps-commits] r2506 - in packages/sabnzbdplus/trunk/debian (sabnzbdplus.preinst)
jcfp-guest at users.alioth.debian.org
jcfp-guest at users.alioth.debian.org
Sun Mar 1 20:16:49 UTC 2009
Date: Sunday, March 1, 2009 @ 20:16:49
Author: jcfp-guest
Revision: 2506
(idem)
Added:
packages/sabnzbdplus/trunk/debian/sabnzbdplus.preinst
Added: packages/sabnzbdplus/trunk/debian/sabnzbdplus.preinst
===================================================================
--- packages/sabnzbdplus/trunk/debian/sabnzbdplus.preinst (rev 0)
+++ packages/sabnzbdplus/trunk/debian/sabnzbdplus.preinst 2009-03-01 20:16:49 UTC (rev 2506)
@@ -0,0 +1,14 @@
+#!/bin/sh
+
+set -e
+
+#DEBHELPER#
+
+if [ "$1" = "upgrade" ]; then
+ if [ $(pgrep -c -f '/usr/bin/sabnzbdplus') -gt 0 ]; then
+ echo "Terminating all running instances of sabnzbdplus ..."
+ pkill -f '/usr/bin/sabnzbdplus' || true
+ fi
+fi
+
+exit 0
More information about the Python-apps-commits
mailing list