I'm trying to figure out a way to put my apache installation at bootup time. I have RH9, and it seems to be that at runlevel 5, it runs a symbolic link /etc/rc5.d/S85httpd that points to the file /etc/rc.d/init.d/httpd. Now i'm using SSL, which means I need to type apachectl startssl to start apache. I looked in the apachectl script, and startssl is the same as doing:
httpd -k start -DSSL
Now I was wondering what would be a good way to incorporate that command in the /etc/rc.d/init.d/httpd script file? I looked through it, and there was the start() command:
echo -n $"Starting $prog: "
check13 || exit 1
daemon $httpd $OPTIONS
[ $RETVAL = 0 ] && touch /var/lock/subsys/httpd
$httpd points to the file place, but I can't figure out where the $OPTIONS variable comes from. If i could edit that variable to "-k start -DSSL", then everything would work fine, i'm assuming. So does anyone know where I can define that $OPTIONS variable?
oh yeah, btw, i already got rid of the pass phrase needed with apachectl startssl, so no need to worry about that!