[ps-watcher] 37/88: provide upgrade path for versions where no (correct) pidfile was written

Jan Wagner waja at alioth.debian.org
Fri Nov 8 23:06:37 UTC 2013


This is an automated email from the git hooks/post-receive script.

waja pushed a commit to branch master
in repository ps-watcher.

commit 1e0f3e9ca425e711a352e18819f1ef45027bba2e
Author: Jan Wagner <waja at cyconet.org>
Date:   Thu Jul 5 09:03:08 2007 +0000

    provide upgrade path for versions where no (correct) pidfile was written
---
 debian/prerm |    8 ++++++++
 1 file changed, 8 insertions(+)

diff --git a/debian/prerm b/debian/prerm
new file mode 100755
index 0000000..513e294
--- /dev/null
+++ b/debian/prerm
@@ -0,0 +1,8 @@
+#!/bin/sh
+set -e
+
+# generate correct pid file, for versions where was non or incorrect
+if [ "$1" = "upgrade" ] && [ "$2" ] && dpkg --compare-versions "$2" <= "1.06-6"; then
+	ps aux | grep /usr/bin/ps-watcher | head -1 | awk '{ print $2 }' > /var/run/ps-watcher.pid
+fi
+#DEBHELPER#

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/pkg-perl/packages/ps-watcher.git



More information about the Pkg-perl-cvs-commits mailing list