[CentOS] automated stopserver & shutdown?

Alexander Dalloz ad+lists at uni-x.org
Mon Nov 17 08:44:49 UTC 2014


Am 17.11.2014 um 06:56 schrieb Hadi Motamedi:
> Dear All
> In an environment , I have 20 centos servers running together . For
> shutting them down , I need to issue the followings on each of the
> servers :
> #./stopServer
> #init 0
> This is cumbersome to try to issue these on huge amount of servers to
> keep them safely going shutdown. Can you please let me know how can I
> automate it and say let just one server send stop processes and
> shutdown commands to the other ones and then goes shutdown himself?
> Thank you

Try out ansible.

Using it you can automate many more tasks distributed over your server 
environment through very simple configurations. It is very flexible and 
powerful.

Alexander





More information about the CentOS mailing list