[ps-watcher] 62/88: move start and stop positions

Jan Wagner waja at alioth.debian.org
Fri Nov 8 23:06:45 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 817c8355980843c1f0e7561f1dd8840f97c0ed81
Author: Jan Wagner <waja at cyconet.org>
Date:   Fri Jul 24 17:21:00 2009 +0000

    move start and stop positions
---
 debian/NEWS      |   10 ++++++++++
 debian/changelog |    6 ++++--
 debian/postinst  |   21 +++++++++++++++++++++
 debian/rules     |    2 +-
 4 files changed, 36 insertions(+), 3 deletions(-)

diff --git a/debian/NEWS b/debian/NEWS
new file mode 100644
index 0000000..65a664b
--- /dev/null
+++ b/debian/NEWS
@@ -0,0 +1,10 @@
+ps-watcher (1.08-1) unstable; urgency=low
+
+  * moved startup to the end of the boot process and terminating to the
+    beginning of the shutdown process
+
+    If you modified the order of ps-watcher runlevel scripts for your own, this
+    adjustment will not happen automatically and you have to handle it for
+    yourself.
+
+ -- Jan Wagner <waja at cyconet.org>  Fri, 24 Jul 2009 19:16:09 +0200
diff --git a/debian/changelog b/debian/changelog
index 7ebf6aa..d326cd5 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -1,11 +1,13 @@
-ps-watcher (1.08-1) UNRELEASED; urgency=low
+ps-watcher (1.08-1) unstable; urgency=low
 
   * new upstream release
     - pidfile support
     - darwin support
   * remove dpatch infrastructure
+  * moved initscritps to S99 and K01, thanks Tim Miller Dyck (Closes: #508189)
+  * created NEWS.Debian
 
- -- Jan Wagner <waja at cyconet.org>  Thu, 19 Feb 2009 17:31:31 +0100
+ -- Jan Wagner <waja at cyconet.org>  Fri, 24 Jul 2009 19:12:00 +0200
 
 ps-watcher (1.07-1) unstable; urgency=low
 
diff --git a/debian/postinst b/debian/postinst
new file mode 100644
index 0000000..21a0a63
--- /dev/null
+++ b/debian/postinst
@@ -0,0 +1,21 @@
+#!/bin/sh
+
+set -e
+
+if [ "$1" != "configure" ]; then
+	exit 0
+fi
+
+if [ "$2" ] && dpkg --compare-versions "$2" lt "1.08-1"; then
+    if [ -e /etc/rc2.d/S40ps-watcher ] && \
+       [ -e /etc/rc3.d/S40ps-watcher ] && \
+       [ -e /etc/rc4.d/S40ps-watcher ] && \
+       [ -e /etc/rc5.d/S40ps-watcher ] && \
+       [ -e /etc/rc0.d/K40ps-watcher ] && \
+       [ -e /etc/rc1.d/K40ps-watcher ] && \
+       [ -e /etc/rc6.d/K40ps-watcher ]; then
+        update-rc.d -f ps-watcher remove >/dev/null
+    fi
+fi
+
+#DEBHELPER#
diff --git a/debian/rules b/debian/rules
index 0ddd3d5..0f2b7a9 100755
--- a/debian/rules
+++ b/debian/rules
@@ -50,7 +50,7 @@ binary-indep: build install
 	dh_installchangelogs ChangeLog
 	dh_installdocs
 	dh_installexamples samples/*
-	dh_installinit -- defaults 40
+	dh_installinit -- defaults 99 01
 	dh_link
 	dh_compress
 	dh_fixperms

-- 
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