Check how my process was killed

خرید بک لینک

I'm currently running a simple Node.JS server with express.js on my RaspberryPi with Debian installed on it. Everything works fine, but every moing I wake up to see my server isn't running anymore (the server process I started with node main.js).

My first guess was, that the Pi has some kind of sleep mode, which it enters after a couple of hours without traffic/etc, and which shuts down the server, but I also run a dydns-client, which is still up every moing.

Is there a way to track a process after I started it to check tomorrow moing, what killed my process or why it ended?

The server itself looks pretty simple and I don't think there is some kind of auto-shutdown I missed. Here is the code I used.

var express = require('express');
var path    = require('path');

var server  = express();
server.use(express.static(path.join(__diame, 'public')));

server.listen(1337);
console.log("Server listening (PORT: " + 1337 + ") ...");

Any idea what to do, to keep the server running/find out what is the stopping reason?

Recent Questions...

ما را در سایت Recent Questions دنبال می‌کنید

برچسب: نویسنده: استخدام کار بازدید: 176 تاريخ: سه شنبه 21 ارديبهشت 1395 ساعت: 0:45

صفحه بندی