Search This Blog
Thursday, July 17, 2008
To start a service at different Run Levels
To start a service at different run levels you should use chkconfig command which is provided by Fedora.
For eg:
To start mysqld service on startup:
1. CHeck status of mysqld:
[HiTMAN: ]# chkconfig --list mysqld
mysqld 0:off 1:off 2:off 3:off 4:off 5:off 6:off
2. Use the following command to change the mysqld service run levels:
[HiTMAN: ]# chkconfig mysqld on
3. Use the foll command to check whether the mysqld service has been started at required run levels.
[HiTMAN: ]# chkconfig --list mysqld
mysqld 0:off 1:off 2:on 3:on 4:on 5:on 6:off
Subscribe to:
Post Comments (Atom)
No comments:
Post a Comment