Skip to content

Instantly share code, notes, and snippets.

View danbeam's full-sized avatar
🚲

Dan Beam danbeam

🚲
  • Los Angeles, CA
View GitHub Profile
function subclass(base, child) {
function temp() {}
temp.prototype = base.prototype;
child.prototype = new temp;
}
function a(){}
a.prototype = {foo: 'bar'};
function b(){}
@danbeam
danbeam / smartmontools.patch
Created December 17, 2014 23:35
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 $?