Fork restart command on hook