add reboot function to server