curator
Version:
A flexible process monitoring and management framework.
12 lines (9 loc) • 327 B
JavaScript
var Curator = require('curator');
Curator.newWatch(function () {
this.name = 'date';
this.startCommand = 'date';
this.on('data', Curator.print); // Print process' STDOUT
this.maxRetry = 3; // Only restart three times
Curator.autoRestart(this); // Apply autoRestart behavior to this instance
});
Curator.startAll();