Home > HOWTOs > Adding services to auto start after reboot.

Adding services to auto start after reboot.

1. List All Services, Using ‘–list‘ parameter will displayed all services and their current status in each run-level configuration.
[ahmed@server ~]# chkconfig –list

myservermgesrv  0:off   1:off   2:on    3:on    4:on    5:on    6:off
abc-servc       0:off   1:off   2:off   3:on    4:off   5:on    6:off
xyz:ahmed       0:off   1:off   2:off   3:on    4:off   5:on    6:off
2. Adding mysqld, zabbix-server, zabbix-agent, httpd to chkconfig
[ahmed@server ~]# chkconfig –level 235 mysqld on
[ahmed@server ~]# chkconfig –level 235 zabbix-server on
[ahmed@server ~]# chkconfig –level 235 zabbix-agent on
[ahmed@server ~]# chkconfig –level 235 httpd on
3. To Disable any run-level use the off parameter.
[ahmed@server ~]# chkconfig –level 2 mysqld off
Advertisements
Categories: HOWTOs
  1. No comments yet.
  1. No trackbacks yet.

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: