How to auto reset app or module

you can see here to use faultaction: