Answer the question
In order to leave comments, you need to log in
Reload raspberry html/php with button on local homepage?
Help implement. There is a home page (local) with links to torrents, cameras in the house, the state of the print server. Raspberry sometimes freezes (luckily rarely), but in general it falls off if, for example, deleting a download in Transmission is easiest to just restart. In general, at home, this is solved by pulling poor raspberries out of the network (((I would like to add a button on the page after clicking on which a separate demon or raspberries as a whole restarted)
Answer the question
In order to leave comments, you need to log in
I think it can be done something like this:
1. Create the file /var/www/html/needRestart by clicking the button on the page.
2. Add the following line to crontab:
* * * * * if [ -f /var/www/html/needRestart ]; then rm -f /var/www/html/needRestart; /sbin/shutdown -r now; fi
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question