Created
February 18, 2016 12:04
-
-
Save voidabhi/b267ecd28d6e59ef82af to your computer and use it in GitHub Desktop.
Basic checkconfig commands
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# list all services | |
chkconfig --list | |
# check status of specific service | |
chkconfig --list | grep httpd | |
# start perticular service on run levels | |
chkconfig --level 35 httpd on | |
# check which services are on or off | |
chkconfig --list | grep 5:on | |
chkconfig --list | grep 5:off | |
# stop perticular services on run levels | |
chkconfig --level 3 postfix off |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment