Created
July 25, 2017 11:59
-
-
Save webuti/0fda33fb051cc4e440e4a3d080e38f49 to your computer and use it in GitHub Desktop.
Does gearman work?
This file contains 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
var exec = require('child_process').exec; | |
exec('ps aux | grep gearman', function (error, stdout, stderr) { | |
stdoutsp = stdout.split('php cli.php'); | |
if (stdoutsp[1]) { | |
console.log('gearmanWork'); | |
} | |
else { | |
console.log('gearman Not Work'); | |
} | |
}); | |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment