John W. Foster wrote:
> My last upgrade of Debian stable on my production server produced an
> error that is causing issues. Apache2 is not automatically restarting as
> it should when the system is rebooted.

The other suggestions were good.  Additionally I would want to see if
there are errors from 'insserv' which creates the symlinks used for
the concurrent boot system.  And I would want to see what symlinks
exist before and after.

  $ find /etc/rc?.d -name '*apache2'
  /etc/rc0.d/K02apache2
  /etc/rc1.d/K02apache2
  /etc/rc2.d/S27apache2
  /etc/rc3.d/S27apache2
  /etc/rc4.d/S27apache2
  /etc/rc5.d/S27apache2
  /etc/rc6.d/K02apache2

You are probably missing one of the 'S*apache2 symlinks'.  The exact
number isn't important and will be different on different systems due
to 'insserv' creating them based upon the current system topography.

  # insserv -v
  insserv: creating .depend.boot
  insserv: creating .depend.start
  insserv: creating .depend.stop

That is from a fresh installation system.  You may have other output.
In particular if there are errors then you will see them there.  If
there is an error then you would want to know about it and repair it.

It could be that for some reason a symlink was removed from your
system.  If so then the tools will assume that you did it
intentionally and will preserve that change until you change it
again.  That isn't an error.  It would be an error to do otherwise.

> Webmin shows that the Apache server is setup to start on bootup.

If you are using webmin I know that it can make configuration changes.
It could be that a webmin command (perhaps by slip of the mouse) made
this as an intentional configuration change.  Intentional even if by
mouse slip and not by actual intent but the result would be same.

To reset everything to package defaults you can remove all of the
rc?.d symlinks and then install them again.

  $ find /etc/rc?.d -name '*apache2'
  /etc/rc0.d/K02apache2
  /etc/rc1.d/K02apache2
  /etc/rc2.d/S27apache2
  /etc/rc3.d/S27apache2
  /etc/rc4.d/S27apache2
  /etc/rc5.d/S27apache2
  /etc/rc6.d/K02apache2

Then to remove them:

  # find /etc/rc?.d -name '*apache2' -delete

Then to install them again all three of these do the same thing but in
different ways.  Pick one of them.  Use whichever you feel most
comfortable with doing.

  1.
    # update-rc.d apache2 defaults 91 09
    update-rc.d: using dependency based boot sequencing

  2.
    # dpkg-reconfigure apache2.2-common

  3.
    # apt-get install --reinstall apache2.2-common

Then verify that the symlinks are on your system.

  $ find /etc/rc?.d -name '*apache2'

Bob

Attachment: signature.asc
Description: Digital signature

Reply via email to