I have a process I’d only like to run when I manually reboot my Rails app by touching tmp/restart.txt, not when Passenger restarts itself after an idle period. Is there anything I can check in my Rails code to determine whether a given reboot was one or the other?
Share
Maybe it’s not answer you want, but I would simply create short script:
Then when you restart aplication manualy through this script, you can do after it whatever you want.