thomasjacquin / allsky-portal

A simple, responsive web interface to control an allsky camera connected to a Raspberry Pi
GNU General Public License v3.0
35 stars 22 forks source link

Try reload or restart #95

Closed EricClaeys closed 2 years ago

EricClaeys commented 2 years ago

The "allsky" package is implementing the ability to have the program re-read its configuration variables without exiting and restarting. It is sent the SIGHUP signal when a "reload" should occur. It currently just captures that signal and exits, but will eventually re-load arguments (once they are all in one file).

This PR changes the WebUI to cause the SIGHUP signal to be sent by using "systemctl reload-or-restart allsky" (the "reload" part sends the signal, and if that's not supported the "restart" part does a normal restart).