support reboot in windows service mode