Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Kai Krakow
Am Mon, 1 Aug 2016 16:09:36 +0300 schrieb Svetoslav Iliev : > Hi guys, > > Thank you for the prompt reply and your valuable input. Just to let > you know - I was able to do exactly what I intended. As it turns out > my mistake was indeed creating contradiction between the

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Svetoslav Iliev
Hi guys, Thank you for the prompt reply and your valuable input. Just to let you know - I was able to do exactly what I intended. As it turns out my mistake was indeed creating contradiction between the WantedBy and After sections. Once I introduced a new "change.target" and adjusted my

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Andrei Borzenkov
On Mon, Aug 1, 2016 at 2:43 PM, Michael Chapman wrote: > On Mon, 1 Aug 2016, Andrei Borzenkov wrote: >> >> On Mon, Aug 1, 2016 at 2:23 PM, Michael Chapman >> wrote: >>> >>> On Mon, 1 Aug 2016, Andrei Borzenkov wrote: >>> [...] > > > So

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Michael Chapman
On Mon, 1 Aug 2016, Andrei Borzenkov wrote: On Mon, Aug 1, 2016 at 2:23 PM, Michael Chapman wrote: On Mon, 1 Aug 2016, Andrei Borzenkov wrote: [...] So here goes what I've done: 1. Create a service and put it in the network-online.target:

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Michael Chapman
On Mon, 1 Aug 2016, Andrei Borzenkov wrote: [...] So here goes what I've done: 1. Create a service and put it in the network-online.target: /etc/systemd/system/change-target.service: [Unit] Description=Change Target Wants=network-online.target After=network-online.target [Service]

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Andrei Borzenkov
On Mon, Aug 1, 2016 at 2:23 PM, Michael Chapman wrote: > On Mon, 1 Aug 2016, Andrei Borzenkov wrote: > [...] >>> >>> So here goes what I've done: >>> >>> 1. Create a service and put it in the network-online.target: >>> >>> /etc/systemd/system/change-target.service: >>>

Re: [systemd-devel] Question about changing systemd target during boot

2016-08-01 Thread Andrei Borzenkov
On Mon, Aug 1, 2016 at 12:27 PM, Svetoslav Iliev wrote: > Hi all, > > I've been recently searching through internet for a possible solution for > this but so far without success and I'm still not sure if it is even > possible. Basically what I'm trying to do: > > During system