[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.
This commit is contained in:
Ben Hutchings 2017-09-30 12:58:06 +01:00
parent 9fec004526
commit 51100af154
4 changed files with 4 additions and 3 deletions

1
debian/changelog vendored
View File

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

View File

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

View File

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

View File

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