** No longer affects: systemd (Ubuntu)
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1468103
Title:
rc.local runs earlier than cloud-init.service
Status in cloud-init
Please see comment #7 -- cloud-final.service declares to run *after* rc-
local.service. Thus it is not possible that rc-local.service "runs last"
as that would be a contradiction to what cloud-final wants and says.
There is nothing to "fix" and this was no different in upstart either --
if
>the notion of "the last thing during boot" is not well-defined with a
partially ordered and parallel init system like systemd or upstart (or
even sysvinit+startpar).
systemd needs to be fixed then.
because rc.local worked well with upstart.
--
You received this bug notification because you
A simple fix is something like this:
Create the /etc/systemd/system/rc-local.service file with the following
contents:
[Unit]
Description=/etc/rc.local Compatibility
[Service]
Type=idle
ExecStart=/etc/rc.systemd
TimeoutSec=0
RemainAfterExit=yes
[Install]
WantedBy=multi-user.target
Create a
> So as long as cloud-init.service declares itself to run after rc-
local.service
Sorry, I meant cloud-final.service.
--
You received this bug notification because you are a member of Ubuntu
Touch seeded packages, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1468103
As I explained, the notion of "the last thing during boot" is not well-
defined with a partially ordered and parallel init system like systemd
or upstart (or even sysvinit+startpar).
So as long as cloud-init.service declares itself to run after rc-
local.service, then rc-local.service necessarily
Tiago, your service file has even weaker dependencies like the standard
rc-local.service, so it'll run even earlier. It's not good advice to
create blanket "wrappers" around shell scripts without specifying any
dependency.
--
You received this bug notification because you are a member of Ubuntu
Independent of cloud-init, things in rc.local should be run as the
last thing in boot.
So now we have last thing except cloud-init :-) There are other
services which order themselves after it, like getty@, plymouth-quit and
others, to avoid disturbing init.d/rc.local scripts with allocated VTs
8 matches
Mail list logo