Skip to content

Instantly share code, notes, and snippets.

@voidabhi
Created February 18, 2016 12:04
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save voidabhi/b267ecd28d6e59ef82af to your computer and use it in GitHub Desktop.
Save voidabhi/b267ecd28d6e59ef82af to your computer and use it in GitHub Desktop.
Basic checkconfig commands
#!/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