Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Stef Bon
2012/4/29 Nikolaus Rath nikol...@rath.org: Hello, I am struggling to come up with the correct way to define a unit configuration for a FUSE based network file system. Generally, the file system needs to be mounted and unmounted with its own programs (rather than with mount and umount). The

Re: [systemd-devel] About autofs: no handling of expire??

2012-05-02 Thread Lennart Poettering
On Wed, 02.05.12 07:45, Stef Bon (stef...@gmail.com) wrote: Hi, I've been looking into the code how systemd handles the automounting. Heya, I've got two issues: a. I've found the handling of the missing packet (autofs_ptype_missing_direct), which triggers the mounting. But I did not

Re: [systemd-devel] About autofs: no handling of expire??

2012-05-02 Thread Stef Bon
2012/5/2 Lennart Poettering lenn...@poettering.net: (autofs_ptype_expire_direct). Is this on purpose? I see a timeout set, so I guess it was the intention to handle the expire. We currently don't do expiration, since this wasn't intended as a full autofs implementation, but just a way to

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Kok, Auke-jan H
On Wed, May 2, 2012 at 1:25 AM, Stef Bon stef...@gmail.com wrote: 2012/4/29 Nikolaus Rath nikol...@rath.org: Hello, I am struggling to come up with the correct way to define a unit configuration for a FUSE based network file system. Generally, the file system needs to be mounted and

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Lennart Poettering
On Sat, 28.04.12 20:41, Nikolaus Rath (nikol...@rath.org) wrote: Hello, I am struggling to come up with the correct way to define a unit configuration for a FUSE based network file system. Generally, the file system needs to be mounted and unmounted with its own programs (rather than

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Nikolaus Rath
On 05/02/2012 03:53 PM, Lennart Poettering wrote: On Sat, 28.04.12 20:41, Nikolaus Rath (nikol...@rath.org) wrote: Hello, I am struggling to come up with the correct way to define a unit configuration for a FUSE based network file system. Generally, the file system needs to be mounted and

Re: [systemd-devel] Unit configuration for FUSE file system

2012-05-02 Thread Stef Bon
2012/5/2 Nikolaus Rath nikol...@rath.org: On 05/02/2012 03:53 PM, Lennart Poettering wrote: On Sat, 28.04.12 20:41, Nikolaus Rath (nikol...@rath.org) wrote: automatically, without any manual kludges. We won't support any other hacks in systemd. Sorry. Ah, ok. Mounting with /bin/mount -t

[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 I

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 switched to

Re: [systemd-devel] network consuming user services

2012-05-02 Thread David Strauss
On Wed, May 2, 2012 at 1:19 PM, Sebastian Tramp m...@sebastian.tramp.name 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

Re: [systemd-devel] network consuming user services

2012-05-02 Thread David Strauss
On Wed, May 2, 2012 at 3:40 PM, David Strauss da...@davidstrauss.net 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:

Re: [systemd-devel] network consuming user services

2012-05-02 Thread David Strauss
On Wed, May 2, 2012 at 3:58 PM, Lennart Poettering lenn...@poettering.net 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

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 lenn...@poettering.net wrote: But if you want that you can do that simply by enabling NetworkManager-wait-online.service, which then delays network.target

Re: [systemd-devel] systemd-namespace-* cleaning?

2012-05-02 Thread Lennart Poettering
On Wed, 25.04.12 09:34, Colin Guthrie (gm...@colin.guthr.ie) wrote: Hi, Is there any defined strategy for tidying up the /tmp/systemd-namespace-* folders (other than /tmp on tmpfs)? Nothing seems to be shipped by default in the tmpfiles.d stuff and it should really be on service stop

Re: [systemd-devel] systemd-namespace-* cleaning?

2012-05-02 Thread Lennart Poettering
On Wed, 25.04.12 09:57, Tom Gundersen (t...@jklm.no) wrote: On Wed, Apr 25, 2012 at 9:34 AM, Colin Guthrie gm...@colin.guthr.ie wrote: Is there any defined strategy for tidying up the /tmp/systemd-namespace-* folders (other than /tmp on tmpfs)? Nothing seems to be shipped by default in