Pages

Friday, November 12, 2010

Configure Service to Autostart at Booting

Apache 1.3.42 on Centos 5.5:

  • 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