Created
December 17, 2014 23:35
-
-
Save danbeam/651a4757f29ba3986ee6 to your computer and use it in GitHub Desktop.
service smartmontools status patch
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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