Perl httpd question
Hello,
I am trying to run a simple httpd server written in Perl. It runs for a day, and then shuts down. I am wondering if anyone has insight as to why it would be shutdown after a day? I started it as a daemon.
Here is the code:-
https://metacpan.org/pod/HTTP::Server::Simple
Thanks
Roger
2 Replies
Are you able to set up any kind of logging?
What I would do personally is - set up a systemd service to start (and monitor) the script.
First you'll get logging for free with no extra effort. Second you will get automatic restarts also for free.
And then you could check the logs to hopefully see what goes wrong.
Ok I will look into using systemd. I can put some logging info in the server. I did try running two different servers and both appear to shut down after about a day or so.
Thanks