Skip to content

Instantly share code, notes, and snippets.

@danbeam
Created December 17, 2014 23:35
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save danbeam/651a4757f29ba3986ee6 to your computer and use it in GitHub Desktop.
Save danbeam/651a4757f29ba3986ee6 to your computer and use it in GitHub Desktop.
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