Re: [systemd-devel] network consuming user services

2012-06-26 Thread Alex Elsayed
Sebastian Tramp wrote: > On Fri, May 04, 2012 at 10:23:25AM +0200, Sebastian Tramp wrote: >> On Thu, May 03, 2012 at 12:29:04AM +0200, Lennart Poettering wrote: >> > On Wed, 02.05.12 22:19, Sebastian Tramp (m...@sebastian.tramp.name) >> > wrote: >> > >> > > Hi, >> > > >> > > I want to start some

Re: [systemd-devel] network consuming user services

2012-05-08 Thread David Strauss
StopWhenUnneeded [1] is a configuration option for the [Unit] section, not the [Service] section. AllowIsolate=false is the default. I was just mentioning that you shouldn't try to use it to spin services up and down based on NetworkManager. [1] http://0pointer.de/public/systemd-man/systemd.unit.

Re: [systemd-devel] network consuming user services

2012-05-04 Thread Sebastian Tramp
On Wed, May 02, 2012 at 03:40:57PM -0700, David Strauss wrote: > On Wed, May 2, 2012 at 1:19 PM, Sebastian Tramp > wrote: > > Are there existing service files which solve a similar or the same issue? > > You may want a target [1]. There is already a network target, but I > believe it comes up bef

Re: [systemd-devel] network consuming user services

2012-05-04 Thread Sebastian Tramp
On Fri, May 04, 2012 at 10:23:25AM +0200, Sebastian Tramp wrote: > On Thu, May 03, 2012 at 12:29:04AM +0200, Lennart Poettering wrote: > > On Wed, 02.05.12 22:19, Sebastian Tramp (m...@sebastian.tramp.name) wrote: > > > > > Hi, > > > > > > I want to start some user services which need a working n

Re: [systemd-devel] network consuming user services

2012-05-04 Thread Sebastian Tramp
On Thu, May 03, 2012 at 12:29:04AM +0200, Lennart Poettering wrote: > On Wed, 02.05.12 22:19, Sebastian Tramp (m...@sebastian.tramp.name) wrote: > > > Hi, > > > > I want to start some user services which need a working network connection. > > This includes services as > > > > * "fetchmail --idle

Re: [systemd-devel] network consuming user services

2012-05-02 Thread Lennart Poettering
On Wed, 02.05.12 16:53, David Strauss (da...@davidstrauss.net) wrote: > > On Wed, May 2, 2012 at 3:58 PM, Lennart Poettering > wrote: > > But if you want that you can do that simply by enabling > > NetworkManager-wait-online.service, which then delays > > network.target accordingly. > > That w

Re: [systemd-devel] network consuming user services

2012-05-02 Thread David Strauss
On Wed, May 2, 2012 at 3:58 PM, Lennart Poettering wrote: > But if you want that you can do that simply by enabling > NetworkManager-wait-online.service, which then delays > network.target accordingly. That would work, but it has potential undesirable effects: * Any services associated with net

Re: [systemd-devel] network consuming user services

2012-05-02 Thread David Strauss
On Wed, May 2, 2012 at 3:40 PM, David Strauss wrote: > I would consider adding a script that fires > network-fully-up.target once NetworkManager finishes This actually appears to be a better example, especially for how you'd adapt the script to handle a connection going down: http://blog.abdullah

Re: [systemd-devel] network consuming user services

2012-05-02 Thread Lennart Poettering
On Wed, 02.05.12 15:40, David Strauss (da...@davidstrauss.net) wrote: > > On Wed, May 2, 2012 at 1:19 PM, Sebastian Tramp > wrote: > > Are there existing service files which solve a similar or the same issue? > > You may want a target [1]. There is already a network target, but I > believe it c

Re: [systemd-devel] network consuming user services

2012-05-02 Thread David Strauss
On Wed, May 2, 2012 at 1:19 PM, Sebastian Tramp wrote: > Are there existing service files which solve a similar or the same issue? You may want a target [1]. There is already a network target, but I believe it comes up before NetworkManager fully initializes all interfaces. I would consider addin

Re: [systemd-devel] network consuming user services

2012-05-02 Thread Lennart Poettering
On Wed, 02.05.12 22:19, Sebastian Tramp (m...@sebastian.tramp.name) wrote: > Hi, > > I want to start some user services which need a working network connection. > This includes services as > > * "fetchmail --idle" to receive mails > * ssh tunnel with autossh > * dyndns update > > I recently swi

[systemd-devel] network consuming user services

2012-05-02 Thread Sebastian Tramp
Hi, I want to start some user services which need a working network connection. This includes services as * "fetchmail --idle" to receive mails * ssh tunnel with autossh * dyndns update I recently switched to systemd 44 on arch linux but after one day of try and error as well as manpage reading