parent
5534d4bd44
commit
8588800025
10
app.js
10
app.js
|
@ -187,6 +187,16 @@ app.use(function(err, req, res, next) {
|
|||
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() {
|
||||
console.log("Node version:", process.versions.node);
|
||||
fs.access(__dirname + "/crontabs/", fs.W_OK, function(err) {
|
||||
|
|
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "crontab-ui",
|
||||
"version": "0.2.7",
|
||||
"version": "0.2.8",
|
||||
"description": "Easy and safe way to manage your crontab file",
|
||||
"main": "index.js",
|
||||
"scripts": {
|
||||
|
|
Loading…
Reference in New Issue