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
| function in_array(needle, haystack, strict) { | |
| //original by: Kevin van Zonneveld (http://kevin.vanzonneveld.net) | |
| var found = false, key, strict = !!strict; | |
| for (key in haystack) { | |
| if ((strict && haystack[key] === needle) || (!strict && haystack[key] == needle)) { | |
| found = true; | |
| break; | |
| } | |
| } |
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
| check process elasticsearch with pidfile /var/run/elasticsearch.pid | |
| start program = "/etc/init.d/elasticsearch start" | |
| stop program = "/etc/init.d/elasticsearch stop" | |
| if 5 restarts within 5 cycles then timeout |
NewerOlder