So...I'm onto my problem...the runlevel itself!

/etc/rc.d/rc3.d/S85httpd is Full multiuser mode (normal operation)

/etc/rc.d/rc5.d/S85httpd is Runlevel 3 + XWindows login

In all my earlier posts note that I'm setting rc3.d!

% ln -s /usr/local/apache/bin/apachectl /etc/rc.d/rc5.d/S85httpd

Now, that's the ticket. Thanks for the debugging help. 

No offense taken, Rick. ;)
Robert, I'm still interested in any help with the script. :D

Tim

> -----Original Message-----
> From: Rick Carroll [mailto:[EMAIL PROTECTED]]
> Sent: Friday, February 14, 2003 10:33 AM
> To: [EMAIL PROTECTED]
> Subject: RE: init/runlevel help needed in RHL 8.
> 
> 
> Tim,
> Sorry if I came off snooty earlier...  It was not intended...
> 
> This is a SWAG, but there may be environment variables that 
> get set in a login session that init doesn't have during boot.
> PATH, LD_LIBRARY_PATH, ...  as I said, just guessing...
> I HAVE seen this as an issue booting my company's software 
> from init...  We had to source in an environment file as part 
> of the init.d script.
> 
> HTH, FWIW, YMMV
> 
> Rick.
> 
>  -----Original Message-----
> From:         Stone, Timothy [mailto:[EMAIL PROTECTED]] 
> Sent: Friday, February 14, 2003 10:14 AM
> To:   [EMAIL PROTECTED]
> Subject:      RE: init/runlevel help needed in RHL 8.
> 
> I'm aware that /usr/local/apache/bin/apachectl is not an 
> init.d script. I stipulated this :)
> 
> Given:
> 
> % ls -ld /etc/rc.d/rc3.d/S85httpd
> lrwxrwxrwx 1 root root 31 Feb 13 14:33 
> /etc/rc.d/rc3.d/S85httpd -> /usr/local/apache/bin/apachectl
> 
> Nothing I can tell has changed from what I did in 7.3 to what 
> I'm doing in 8.0. This is a cookbook method I've seen in 
> several guides.
> 
> Robert, I will try your suggestions in your followup post. 
> Also I have not changed a line of code in apachectl. It is 
> apachectl from a typical build of Apache. Could this be a 
> permissions issues I have overlooked?
> 
> % ls -ld /etc/rc.d/rc3.d/S85httpd
> lrwxrwxrwx 1 root root 31 Feb 13 14:33 
> /etc/rc.d/rc3.d/S85httpd -> /usr/local/apache/bin/apachectl
> 
> % ls -ld /usr/local/apache/bin/apachectl
> -rwxr-xr-x 1 apache apache 31 Feb 13 12:28 
> /usr/local/apache/bin/apachectl
> 
> I can't see it. apachectl is 755 and should be executable 
> during init; I think, I concede to more knowledgable persons.
> 
> Tim
> 
> 
> > -----Original Message-----
> > From: Rick Carroll [mailto:[EMAIL PROTECTED]]
> > Sent: Friday, February 14, 2003 9:11 AM
> > To: [EMAIL PROTECTED]
> > Subject: RE: init/runlevel help needed in RHL 8.
> > 
> > 
> > What you're missing, is that apachectl uses start, stop, etc 
> > to control the httpd server as it always has.
> > This is NOT an init.d script, it's virtually the same 
> > apachectl they have been using for years.
> > 
> > When S85httpd gets run by init it gets passed a "start" argument.
> > K15 gets passed a "stop" argument.
> > S = start
> > K = kill
> > Standard rcX.d behavior...
> > 
> > 
> > 
> > Rick.
> > 
> > 
> >  -----Original Message-----
> > From:       Stone, Timothy [mailto:[EMAIL PROTECTED]] 
> > Sent:       Friday, February 14, 2003 8:39 AM
> > To: Redhat-List (E-mail)
> > Subject:    init/runlevel help needed in RHL 8.
> > 
> > List,
> > 
> > I have read the online RHL docs on this...but can't find the answer.
> > 
> > Previous to RHL 8 (7.3), I had the following symlinks
> > 
> > /etc/rc.d/rc3.d/S85httpd -> /usr/local/apache/bin/apachectl
> > 
> > /etc/rc.d/rc6.d/K15httpd -> /usr/local/apache/bin/apachectl
> > 
> > This allowed me to start my custom built instance of Apache, 
> > avoiding the RHL default install. Today this setup does not work.
> > 
> > NB: /usr/local/apache -> /usr/local/apache-2.0.44 this 
> > symlink is intentional for the purpose of rapid apache 
> > version switching, if desired.
> > 
> > When I do the following:
> > 
> > % sudo /etc/rc.d/rc3.d/S85httpd
> > 
> > I get the usage response from httpd:
> > 
> > Usage: /usr/local/apache-2.0.44/bin/httpd ...
> > 
> > Now, how I understand it the init directories pass 
> > start/stop/restart params to the executable in question. If I 
> > do the following:
> > 
> > % sudo /etc/rc.d/rc3.d/S85httpd start
> > 
> > It works as intended. What am I missing? Thanks in advance 
> > for all help!
> > 
> > Warmest Regards,
> > Tim
> > 
> > --
> > /**
> >  * Timothy Stone      . Sun Certified Java Programmer
> >  * Web Master         . tstone at cityofhbg dot com
> >  * City of Harrisburg . 717.255.7297
> >  * Pennsylvania USA   . 717.903.9162
> >  *
> >  * "Censorship always defeats its own purpose,
> >  *  for it creates in the end the kind of society 
> >  *  that is incapable of exercising real discretion."
> >  *  --Henry Steele Commager, Historian
> >  */
> > 
> > 
> > 
> > -- 
> > redhat-list mailing list
> > unsubscribe 
mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 
> 
> 
> 
> -- 
> redhat-list mailing list
> unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
> https://listman.redhat.com/mailman/listinfo/redhat-list
> 



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list




-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list



-- 
redhat-list mailing list
unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe
https://listman.redhat.com/mailman/listinfo/redhat-list

Reply via email to