Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
service smartmontools status patch
diff --git a/smartmontools b/smartmontools
index 975c018..89feba5 100755
--- a/smartmontools
+++ b/smartmontools
@@ -127,7 +127,7 @@ case "$1" in
fi
;;
status)
- status_of_proc -p $SMARTDPID $SMARTD smartd && exit 0 || exit $?
+ status_of_proc -p $PIDFILE smartd smartd && exit 0 || exit $?
;;
*)
echo "Usage: /etc/init.d/smartmontools {start|stop|restart|reload|force-reload|status}"
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment