Enabling services.

Hi,

I would like to know wheather it is possible to enable same services on another Linux Box, which are enabled on First Linux Server.

Example.

Server A having some services enabled, I want same kind of services enabled on Server B using single command / using chkconfig command, instead of checking each serviecs on Server B and comparing service with Server A.

First, why would you want to do so.Given, the servers are identical in terms of services they have then use rsync to copy over the following directories from server A to server B

/etc/rc3.d/
/etc/rc5.d/
etc/rc.local ( is a file, just in case copy it over)

Once the copy is done reboot the serverB. They should have the same services as server A.

/etc/rc.local is a link (to /etc/rc.d/rc.local).

Why just rc.3 and rc.5? You don't want to stop services?

You want /etc/init.d too.

1 Like

Thanks for that Scott I forgot.Yes, /etc/init.d is also needed

Many Many Thanks Saverick_here & Scott for your inputs