15 lines
350 B
JavaScript
Raw Normal View History

2017-09-20 23:16:30 +02:00
var pidof = require('pidof');
pidof('cron', function (err, pid) {
if (err) {
console.log('Weird error getting PIDs');
console.log(err);
} else {
if (pid) {
console.log('Found cron at pid ' + pid);
} else {
console.log('Seems like there\'s no cron on this system');
}
}
});