[systemd-devel] Emulate two cron tab entries to start/stop service unit natively?

2016-08-01 Thread John
Is it possible to use a systemd timer unit to start and stop a service unit according to set times of the day? In my case, openvpn.service is a forking type if that matters. I can do this using cron, but am wondering if/how to do it with systemd natively. In cron terms, one could do this like

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 WantedBy and > After sec

Re: [systemd-devel] NOARP support (systemd-networkd)

2016-08-01 Thread Zbigniew Jędrzejewski-Szmek
On Sun, Jul 31, 2016 at 06:08:32AM +0300, Jukka Aho wrote: > If there is a supported way of switching the "NOARP" mode on for a > given interface, or a workaround, I'd be interested in hearing about > it. If there is no support for this at all, I would suggest adding > it. There's no support curren

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 servi

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 here goes what I've done: > > 1. Create a

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: /etc/systemd/system/change-target.service: [Unit] De

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] Type=oneshot

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: >>> [Unit] >>> Description=Chang

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 boot, after the netw

[systemd-devel] FINAL REMINDER! systemd.conf 2016 CFP ends today!

2016-08-01 Thread Lennart Poettering
Hey! This is the last reminder that the sytemd.conf 2016 CfP ends today, Aug. 1st. Please submit your proposals by the end of the Day, Central European Time! Thank you! https://cfp.systemd.io/en/systemdconf_2016/cfp/session/new Lennart -- Lennart Poettering, Red Hat ___

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

2016-08-01 Thread Svetoslav Iliev
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 boot, after the network-online target I want to execute a script which changes the c