Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 99987 - apache2 init script 'reload' when stopped does not set status to started
Summary: apache2 init script 'reload' when stopped does not set status to started
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: New packages (show other bugs)
Hardware: All Linux
: High minor (vote)
Assignee: Apache Team - Bugzilla Reports
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2005-07-23 01:00 UTC by Jeremy Huddleston (RETIRED)
Modified: 2005-07-28 16:01 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Jeremy Huddleston (RETIRED) gentoo-dev 2005-07-23 01:00:28 UTC
The apache2 init script will start the server if run with 'reload' when the
server is stopped, but /var/lib/init.d/started/apache2 symlink doesn't get
created, so it thinks the service is stopped:

$ /etc/init.d/apache2 stop
 * ERROR:  "apache2" has not yet been started.

$ /etc/init.d/apache2 reload 
 * Reloading apache2 ...
httpd not running, trying to start                                        [ ok ]

$ /etc/init.d/apache2 stop   
 * ERROR:  "apache2" has not yet been started.

$ /etc/init.d/apache2 start
 * Starting apache2 ...
httpd (pid 28712) already running                                         [ ok ]
Comment 1 David Grant 2005-07-27 08:23:11 UTC
I just upgraded to the most recent ebuild of apache, -r12, and I'm having lots
of trouble with the apache2 init.d script. The -r8 version was rock solid, but
this one has trouble starting and stopping apache.
Comment 2 Michael Stewart (vericgar) (RETIRED) gentoo-dev 2005-07-28 16:01:13 UTC
I have fixed this in 2.0.54-r13. Reload now checks to see if apache has been
started and if not errors out.