- cp /opt/apache/bin/apachectl /etc/init.d/apachectl
This makes the script can be run by command "service apachectl start".
- ln -s /etc/init.d/apachectl /etc/rc3.d/S56apachectl
Keyword "S" makes the script executed at boot process.
rc3.d means executed on command-line mode, and for GUI it should be rc5.d.
No comments:
Post a Comment