Adding function restart <app> in monitor