JPro-one / JPro

The right place to report about bugs or suggest improvements for JPro.
https://www.jpro.one
9 stars 4 forks source link

How to restart jpro.one production server automatically? #171

Open ctoabidmaqbool1 opened 9 months ago

ctoabidmaqbool1 commented 9 months ago

Sometimes I face a problem that my production Jpro App server shutdown. Sometimes like this when I was sleeping.

It's teadious taks to open computer, open termianl, and do stuff something like this, every time:

cd /var/www/myapp/bin
./restart-background.sh

Is there anyway to automatically restart jpor serven when it's shutdown??? I think, if it's possible there shout be script file something like this auto-restart-background.sh.

More over I am still not getup the cause of shutdown of my production ready jpro server, I have applied debugging steps alreay e.g. https://www.jpro.one/docs/current/2.5/DEBUGGING_AND_TESTING

FlorianKirmaier commented 9 months ago

I guess the most straightforward way, would be to configure it as a systemd service for linux. (Or as a windows service) We'll try to find time to document it - and find a simple well working configuration.

Some tips about your shutdown problem:

Guess we should also add these hints to the documentation.