[Bug 1575572] Re: apache2 fails to start if installed via cloud config (on Xenial)
Martin Pitt
martin.pitt at ubuntu.com
Thu Apr 28 19:44:27 UTC 2016
Indeed this isn't related to native systemd units vs. sysvinit scripts.
> honor this historical behavior by making the 'runlevel' command return
the target runlevel when called from a systemd unit that's run at boot,
even if that target has not yet been reached.
OK, I wasn't aware of that. I'll look into that.
> d.) output of runlevel is stored in RL and then it goes looking for an
SLINK or SSLINK (/etc/rc$RL.d/S??apache2 or /etc/rcS.d/S??apache2).
Neither of these exist so it exits without starting the service.
To be sure we are talking about the same thing: Surely update-rc.d
should run before invoke-rc.d in the postinst, so the links should exist
in rc[2345].d/. This is solely about $RL having the wrong value here,
not about the links not existing at all, right?
--
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1575572
Title:
apache2 fails to start if installed via cloud config (on Xenial)
Status in cloud-init package in Ubuntu:
Confirmed
Status in init-system-helpers package in Ubuntu:
Confirmed
Status in systemd package in Ubuntu:
Triaged
Bug description:
Using the following cloud config, apache2 will fail to start on
installation on Xenial:
#cloud-config
packages:
- apache2
See for example:
$ gcloud compute instances create xenial-$(date +%y%m%d-%H%M) --image ubuntu-1604-xenial-v20160420c --image-project ubuntu-os-cloud --metadata-from-file user-data=cloud-config
NAME ZONE MACHINE_TYPE PREEMPTIBLE INTERNAL_IP EXTERNAL_IP STATUS
xenial-160427-1050 europe-west1-d n1-standard-1 10.240.0.7 104.155.86.94 RUNNING
$ ssh ubuntu at 104.155.86.94 systemctl status apache2.service
● apache2.service - LSB: Apache2 web server
Loaded: loaded (/etc/init.d/apache2; bad; vendor preset: enabled)
Drop-In: /lib/systemd/system/apache2.service.d
└─apache2-systemd.conf
Active: inactive (dead)
Docs: man:systemd-sysv-generator(8)
To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/cloud-init/+bug/1575572/+subscriptions
More information about the foundations-bugs
mailing list