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

2012-05-02 Thread Nikolaus Rath
Stef Bon writes: > That's why I advise to use a pidfile systemd can watch. I believe one of systemd's design goals is to actually get rid of pid files and related hacks. If I want to use systemd with a pidfile, I may just as well use systemd's sysvinit compatibility layer and stick with my tradit

Re: [systemd-devel] behavior of ID_AUTOSEAT

2012-05-02 Thread Lennart Poettering
On Tue, 24.04.12 15:23, shawn (shawnland...@gmail.com) wrote: > if you have a nested ID_AUTOSEAT tags does it ignore the child tags? or > do those get excluded from the parent and put in their own seat? > > Is there documentation for this I missed? What precisely do you mean by "nested" ID_AUTOS

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 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 the tmpfil

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 st

Re: [systemd-devel] cannot add dependency service to graphical.target

2012-05-02 Thread Lennart Poettering
On Thu, 26.04.12 21:10, ZiQiang Huan (hzqh...@gmail.com) wrote: > hi, everyone, > I try to write a systemd service just like below: > [Unit] > Description=service for telnetd > Wants=syslog.target syslog.target is not really necessary anymore these days. > > [Service] > ExecStart=/usr/bin/busyb

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

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

2012-05-02 Thread Stef Bon
2012/5/2 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: >> automatically, without any manual kludges. We won't support any other >> hacks in systemd. Sorry. > > > Ah, ok. Mounting with /bin/mount -t works just

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 b

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 th

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 wrote: > 2012/4/29 Nikolaus Rath : > > 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 > >

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

2012-05-02 Thread Stef Bon
2012/5/2 Lennart Poettering : >> (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 parallelize and d

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

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

2012-05-02 Thread Stef Bon
2012/4/29 Nikolaus Rath : > 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 main reason