Apache init script vanished afetr kernel update

Upon kernel update kernel-default-3.11.10-11.1 on Opensuse 13.1, Apache init script just disappeared and obviously Apache didn’t start after reboot.

What do you mean exactly with “disappear”?

Is there no /etc/init.d/apache2 any more, or what?
That’s definitely not related to the kernel update, I’d say, but there was an Apache2 update as well.

And Apache2 is not started via that init script any more anyway, it contains a native systemd service file (/usr/lib/systemd/system/apache2.service).
But that change is not new. This already was the case when 13.1 was released. Only the latest update removed that init file, as it was not used anyway.

So what exactly is your problem?
That apache2 suddenly doesn’t start any more at boot?

Please post the output of:

sudo systemctl status apache2.service

This works fine here, btw. Nothing has changed here after the latest updates, apache is started without problems during boot.

Try to enable apache2.service, either in YaST->System->Services Manager, or by running:

sudo systemctl enable apache2.service

It should be started at boot then.

here’s the output you requested:

# systemctl status apache2.service
apache2.service - The Apache Webserver
   Loaded: loaded (/usr/lib/systemd/system/apache2.service; enabled)
   Active: active (running) since Wed 2014-05-28 10:50:51 CEST; 1h 16min ago
  Process: 6187 ExecStop=/usr/sbin/start_apache2 -D SYSTEMD -DFOREGROUND -k graceful-stop (code=exited, status=0/SUCCESS)
 Main PID: 6207 (httpd2-worker)
   Status: "Total requests: 14; Current requests/sec: 0; Current traffic:   0 B/sec"
   CGroup: /system.slice/apache2.service
           ├─6207 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -DSSL -DFPM -D SYSTEMD -DFOREGROUND -k start
           ├─6223 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -DSSL -DFPM -D SYSTEMD -DFOREGROUND -k start
           ├─6224 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -DSSL -DFPM -D SYSTEMD -DFOREGROUND -k start
           └─6225 /usr/sbin/httpd2-worker -f /etc/apache2/httpd.conf -DSSL -DFPM -D SYSTEMD -DFOREGROUND -k start

May 28 10:50:51 merkur-appsrv-1 systemd[1]: Started The Apache Webserver.

and yes,

systemctl enable apache2.service

did work…

Apache is running now.

So your problem is solved? :wink: