Files
cloudron-box/crashnotifierservice.js

17 lines
387 B
JavaScript
Raw Normal View History

#!/usr/bin/env node
'use strict';
2016-04-19 16:47:21 -07:00
var sendCrashNotification = require('./src/crashnotifier').sendCrashNotification;
function main() {
if (process.argv.length !== 3) return console.error('Usage: crashnotifier.js <processName>');
2015-09-07 21:10:00 -07:00
var processName = process.argv[2];
console.log('Started crash notifier for', processName);
sendCrashNotification(processName);
}
main();