Suresh Alse 2017-05-19 10:24:08 -07:00
parent 5534d4bd44
commit 8588800025
2 changed files with 11 additions and 1 deletions

10
app.js
View File

@ -187,6 +187,16 @@ app.use(function(err, req, res, next) {
res.status(statusCode).json(data); res.status(statusCode).json(data);
}); });
process.on('SIGINT', function() {
console.log("Exiting crontab-ui");
process.exit();
})
process.on('SIGTERM', function() {
console.log("Exiting crontab-ui");
process.exit();
})
app.listen(app.get('port'), app.get('host'), function() { app.listen(app.get('port'), app.get('host'), function() {
console.log("Node version:", process.versions.node); console.log("Node version:", process.versions.node);
fs.access(__dirname + "/crontabs/", fs.W_OK, function(err) { fs.access(__dirname + "/crontabs/", fs.W_OK, function(err) {

View File

@ -1,6 +1,6 @@
{ {
"name": "crontab-ui", "name": "crontab-ui",
"version": "0.2.7", "version": "0.2.8",
"description": "Easy and safe way to manage your crontab file", "description": "Easy and safe way to manage your crontab file",
"main": "index.js", "main": "index.js",
"scripts": { "scripts": {