Authorizing the post request, and checking for a file named gagerun in /boot/uboot/ before running or stopping it from running if gagestop is in the directory to get it ready to shut itself down.