ChriD / Raumserver

Raumserver - A HTTP Request Server to control the RF-Multiroom System
32 stars 11 forks source link

Restart of web server #37

Open seidel77 opened 7 years ago

seidel77 commented 7 years ago

Hi! Do you have a way to restart the server with html or php when it crashs ? (it's happen about every 2-3 days and i really don't know why). And can you tell me as newby how I can change the html page (on the web server - to implement a new homepage - i didn't find it. Thanks a lot

ChriD commented 7 years ago

Do you have a way to restart the server with html or php when it crashs

Nope sorry. Thats not possible. But we may add a "restart" script to init.d that checks whether the process is running and if not then it will start it again. I did such a script for the old Server. Maybee i will add it to the new one I am currently implementing a log which should catch those crashes.

And can you tell me as newby how I can change the html page (on the web server - to implement a new Homepage

In fact the Homepage is located in the etc/raumfeld/raumserver/docroot/ Folder on your RF device. You can connect via scp and put in there what you like. Or you Change the files in the binarie directory of the installer, but then you have to reinstall the Server. (no reboot needed) Be Aware, those changes will be overwritten if you download/install a new version of the raumserver, so be sure you have a backup or that you copy your Webpage Content to a subfolder of the docroot folder on the device

seidel77 commented 7 years ago

thanks for your reply... in fact, a log may already help a little bit