Linux operation and Maintenance Phase II (11) service Management
Service Management: RPM packages are installed by Default services (standalone service, xinetd service based), source package installation Services.
"Independent Service:
Start: Absolute path, example:#/etc/rc.d/init.d/httpd start, Service command start #service httpd start .
self-booting:#chkconfig--level 2345 httpd on|off; modify /etc/rc.d/rc.local file; use ntsysv command to manage service self-booting.
"based on xinetd service:
Start: Modify the/etc/xinetd.d/rsync corresponding configuration file and change the disable=yes to No.
self-booting:#chkconfig Command Management self-booting; use NTSYSV to manage self-booting.
"Source code Package Installation Services:
Start : Start the Service (absolute path) using the source package startup script:#/usr/local/apache2/bin/apachectl start
self-booting: modifying /etc/rc.d/rc.local
Note: Let the source package service be identified and managed by the service command, as long as the soft link to the/etc/rc.d/init.d/directory, if the source package service is chkconfig command recognition and management, Start with a soft link to/etc/rc.d/init.d/ , and then add the #chkconfig at the beginning of the startup script : Run-level start order shutdown order,# Description: Content customization, also perform #chkconfig--add service name.
Example:#ln-S/usr/local/apache2/bin/apachectl/etc/rc.d/init.d/ (can be identified and managed by service commands
#vi/etc/rc.d/init.d/apachectl
#chkconfig: 35 86 76
#description: Source Package Apache
Execute command:#chkconfig-add apachectl (above can be chkconfig command to identify and manage
From Brother Lian Training
This article is from the "Linux Operational Difficulty Learning notes" blog, please be sure to keep this source http://jowin.blog.51cto.com/10090021/1651928
Linux Operations Phase II (11) service Management