pm2/examples/custom_action_with_params.js
2014-05-26 19:17:37 +02:00

23 lines
574 B
JavaScript

var axm = require('axm');
axm.action('refresh:db', { comment : 'Refresh the database' }, function(reply) {
console.log('Refreshing');
reply({success : true});
});
axm.action('chanme:ladb', { comment : 'Refresh la BIG database' }, function(reply) {
console.log('Refreshing BIG DB');
reply({success : true});
});
axm.action('rm:rf', { comment : 'Delete moi ca plus vite que ca !' }, function(reply) {
console.log('RMING RFING');
reply({success : true});
});
axm.action('rm:roff', function(reply) {
console.log('RMING RFING');
reply({success : true});
});