1) Red Hat Method
추가
# chkconfig httpd --add
# chkconfig httpd on --level 2,3,5
확인
# chkconfig --list httpd
삭제
# chkconfig httpd off
# chkconfig httpd --del
시작
# service httpd start
중지
# service httpd stop
2) Debian Method
추가
# update-rc.d apache2 defaults
or
# update-rc.d apache2 start 20 2 3 4 5 . stop 80 0 1 6 .
삭제
# update-rc.d -f apache2 remove
or
# update-rc.d apache2 start 20 5 . stop 80 0 1 2 3 4 6 .
3) Gentoo Method
추가
# rc-update add apache2 default
삭제
# rc-update del apache2
확인
# rc-status --all
4) Old fashioned way
추가
# cd /etc/rc5.d/
# ln -s /etc/init.d/apache2 S20apache2
삭제
# del S20apache2
[참고 : http://linuxhelp.blogspot.com/2006/04/enabling-and-disabling-services-during_01.html]
[참고 : http://linuxhelp.blogspot.com/2006/04/enabling-and-disabling-services-during_01.html]