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

2017-01-28 Thread Mathew Hodson
** 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

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

2016-07-06 Thread Martin Pitt
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

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

2016-07-06 Thread sles
>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

[Touch-packages] [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

[Touch-packages] [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 Touch seeded packages, which is subscribed to systemd in Ubuntu. https://bugs.launchpad.net/bugs/1468103

[Touch-packages] [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

[Touch-packages] [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

[Touch-packages] [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 VTs