auto restart after publish