chkconfig httpd任务添加具体实现代码详解

任务复制#!/bin/bash #description:http server #chkconfig: 235 98 98 case "$1" in start) echo "Starting Apache daemon..." /usr/local/apache2/bin/apachectl -k start ;; stop) echo "Stopping Apache daemon..." /usr/local/apache2/bin/apachectl -k stop ;; restart) echo "Restarting Apache daemon..." /usr/local/apache2/bin/apachectl -k restart ;; status) statusproc /usr/local/apache2/bin/httpd ;; *) echo "Usage: $0 {start|stop|restart|status}" exit 1 ;; Esac 1.2.3.4.5.6.7.8.9.10.11.12.13.14.15.16.17.18.19.20.21.22.23.24.