[linux] 03/18: [x86] hyperv-daemons: Use pid file name in init script status operation

debian-kernel at lists.debian.org debian-kernel at lists.debian.org
Sun Oct 1 15:18:04 UTC 2017


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

benh pushed a commit to branch master
in repository linux.

commit 51100af154e5b025ef1dae2c68d9bf5746cb79bf
Author: Ben Hutchings <ben at decadent.org.uk>
Date:   Sat Sep 30 12:58:06 2017 +0100

    [x86] hyperv-daemons: Use pid file name in init script status operation
    
    While we're here, also drop the unnecessary commands to replicate the
    exit code.
---
 debian/changelog                           | 1 +
 debian/hyperv-daemons.hv-fcopy-daemon.init | 2 +-
 debian/hyperv-daemons.hv-kvp-daemon.init   | 2 +-
 debian/hyperv-daemons.hv-vss-daemon.init   | 2 +-
 4 files changed, 4 insertions(+), 3 deletions(-)

diff --git a/debian/changelog b/debian/changelog
index d0bb35e..8c06020 100644
--- a/debian/changelog
+++ b/debian/changelog
@@ -17,6 +17,7 @@ linux (4.13.4-1~exp1) UNRELEASED; urgency=medium
     TRANSPARENT_HUGEPAGE_MADVISE
   * ALSA: Enable SND_OSSEMUL, a new dependency of SND_{MIXER,PCM}_OSS
   * [armel] rtc: Disable RTC_NVMEM
+  * [x86] hyperv-daemons: Use pid file name in init script status operation
 
   [ Uwe Kleine-König ]
   * [arm64] really enable NET_DSA_MV88E6XXX for Espressobin
diff --git a/debian/hyperv-daemons.hv-fcopy-daemon.init b/debian/hyperv-daemons.hv-fcopy-daemon.init
index 24d944d..923b67b 100755
--- a/debian/hyperv-daemons.hv-fcopy-daemon.init
+++ b/debian/hyperv-daemons.hv-fcopy-daemon.init
@@ -81,7 +81,7 @@ case "$1" in
 	esac
 	;;
   status)
-	status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+	status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME"
 	;;
   restart|force-reload)
 	log_daemon_msg "Restarting $DESC" "$NAME"
diff --git a/debian/hyperv-daemons.hv-kvp-daemon.init b/debian/hyperv-daemons.hv-kvp-daemon.init
index e5908ec..bf16230 100755
--- a/debian/hyperv-daemons.hv-kvp-daemon.init
+++ b/debian/hyperv-daemons.hv-kvp-daemon.init
@@ -80,7 +80,7 @@ case "$1" in
 	esac
 	;;
   status)
-	status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+	status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME"
 	;;
   restart|force-reload)
 	log_daemon_msg "Restarting $DESC" "$NAME"
diff --git a/debian/hyperv-daemons.hv-vss-daemon.init b/debian/hyperv-daemons.hv-vss-daemon.init
index aff28fc..a99d8f2 100755
--- a/debian/hyperv-daemons.hv-vss-daemon.init
+++ b/debian/hyperv-daemons.hv-vss-daemon.init
@@ -80,7 +80,7 @@ case "$1" in
 	esac
 	;;
   status)
-	status_of_proc "$DAEMON" "$NAME" && exit 0 || exit $?
+	status_of_proc -p "$PIDFILE" "$DAEMON" "$NAME"
 	;;
   restart|force-reload)
 	log_daemon_msg "Restarting $DESC" "$NAME"

-- 
Alioth's /usr/local/bin/git-commit-notice on /srv/git.debian.org/git/kernel/linux.git



More information about the Kernel-svn-changes mailing list