Files
cloudron-box/crashnotifierservice.js
Girish Ramakrishnan 15653cb3f8 rename to logcollector
2016-04-19 18:13:05 -07:00

17 lines
386 B
JavaScript
Executable File

#!/usr/bin/env node
'use strict';
var sendCrashNotification = require('./src/logcollector').sendCrashNotification;
function main() {
if (process.argv.length !== 3) return console.error('Usage: crashnotifier.js <processName>');
var processName = process.argv[2];
console.log('Started crash notifier for', processName);
sendCrashNotification(processName);
}
main();