[Bug 1468103] Re: rc.local runs earlier than cloud-init.service

2016-01-11 Thread Martin Pitt
> 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 Server Team, which is subscribed to cloud-init in Ubuntu. https://bugs.launchpad.net/bugs/1468103 Title:

[Bug 1468103] Re: rc.local runs earlier than cloud-init.service

2016-01-11 Thread Martin Pitt
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

[Bug 1468103] Re: rc.local runs earlier than cloud-init.service

2016-01-11 Thread Martin Pitt
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 S

[Bug 1468103] Re: rc.local runs earlier than cloud-init.service

2016-01-11 Thread Tiago Peralta
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 fil

[Bug 1468103] Re: rc.local runs earlier than cloud-init.service

2015-06-25 Thread Martin Pitt
> 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 V

[Bug 1468103] Re: rc.local runs earlier than cloud-init.service

2015-06-25 Thread Scott Moser
Martin, I dont think your suggestion is correct solution. Independent of cloud- init, things in rc.local should be run as "the last thing in boot". rc.local came from a simpler time. sysvinit ran rc.local as the last thing, and that was that last thing that would run. Many people will do: a.) i

[Bug 1468103] Re: rc.local runs earlier than cloud-init.service

2015-06-25 Thread Alberto Salvia Novella
** Also affects: hundredpapercuts Importance: Undecided Status: New ** Changed in: hundredpapercuts Status: New => Confirmed ** Changed in: cloud-init (Ubuntu) Importance: Undecided => High ** Changed in: hundredpapercuts Importance: Undecided => High -- You received thi