Re: httpd fails after boot

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



2009/7/23 Mike -- EMAIL IGNORED <m_d_berger_1900@xxxxxxxxx>:
> On Thu, 23 Jul 2009 16:25:48 +0000, Mike -- EMAIL IGNORED wrote:
>
>> On my Fedora 7 (I know its old) I have been upgrading my httpd.config,
>> including adding some Includes and RewriteCond(ENV:...).  I just noticed
>> that after a boot, the web server fails.  This can be corrected with:
>> /etc/init.d/httpd restart
>> which returns OK on both the stop and start. I note also that on boot,
>> starting httpd reports OK. The environment variable it uses is defined
>> in /etc/bashrc .
>>
>> Thanks for your suggestions.
>>
>> Mike.
>
> I just examined the Rewrite log and I found that it does
> not recognize the environment variable.  I have S85httpd
> at levels 3 and 5.  Where do the environment variables
> /etc/bashrc get set?

I don't think they ever do.

I believe that on boot, the commands are not run as /etc/init.d/blah,
they are run as "/sbin/service start blah" - and that's why your
environment variables don't work. From 'man service':

DESCRIPTION
       service  runs  a  System V init script in as predictable environment as
       possible, removing most environment variables and with current  working
       directory set to /.

-- 
Sam

-- 
fedora-list mailing list
fedora-list@xxxxxxxxxx
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
Guidelines: http://fedoraproject.org/wiki/Communicate/MailingListGuidelines
[Index of Archives]     [Older Fedora Users]     [Fedora Announce]     [Fedora Package Announce]     [EPEL Announce]     [Fedora Magazine]     [Fedora News]     [Fedora Summer Coding]     [Fedora Laptop]     [Fedora Cloud]     [Fedora Advisory Board]     [Fedora Education]     [Fedora Security]     [Fedora Scitech]     [Fedora Robotics]     [Fedora Maintainers]     [Fedora Infrastructure]     [Fedora Websites]     [Anaconda Devel]     [Fedora Devel Java]     [Fedora Legacy]     [Fedora Desktop]     [Fedora Fonts]     [ATA RAID]     [Fedora Marketing]     [Fedora Management Tools]     [Fedora Mentors]     [SSH]     [Fedora Package Review]     [Fedora R Devel]     [Fedora PHP Devel]     [Kickstart]     [Fedora Music]     [Fedora Packaging]     [Centos]     [Fedora SELinux]     [Fedora Legal]     [Fedora Kernel]     [Fedora OCaml]     [Coolkey]     [Virtualization Tools]     [ET Management Tools]     [Yum Users]     [Tux]     [Yosemite News]     [Gnome Users]     [KDE Users]     [Fedora Art]     [Fedora Docs]     [Asterisk PBX]     [Fedora Sparc]     [Fedora Universal Network Connector]     [Libvirt Users]     [Fedora ARM]

  Powered by Linux