Skip to main content

Restart all services without reboot [Resolved]

I do some group permission changes on the CentOS server, And then need restart all services. How can I restart all services safely without rebooting?


Question Credit: Mohammad Etemaddar
Question Reference
Asked October 9, 2019
Posted Under: Unix Linux
10 views
3 Answers

You could switch to single user mode as SHW suggested and then back again. But for CentOS server you should do it this way:

init 1; init 3

Since the first command will disable your network, you should pass the second one on the same line. Otherwise you will not be able to connect to your server using SSH.


credit: Amged Rustom
Answered October 9, 2019

Simply execute these two commands:

  1. init 1
  2. init 5

Init 1 will bring your computer to single user mode, where minimal services are running, and init 5 will being the system back to GUI mode, by restarting all the services


credit: SHW
Answered October 9, 2019
Your Answer