in reply to Re: Persistence
in thread Best way to make a script run persistently (daemon)

I prefer the file test operators to opening the file and reading from it to stop a daemon. It is probably faster and it is easyer to understand.
until (-e "off.txt") { #change -e to -s to behave like George's code #code here sleep 5; }