Re: [systemd-devel] Prepend a number to the config file name

2018-09-12 Thread Lennart Poettering
On Mi, 12.09.18 14:08, Gervais, Francois ([email protected]) wrote: > Hi, > > I saw some systemd examples on the web (i.e. 20-wired.network) that use a > number at the beginning > of the config file name like we do for udev rules. > > In systemd there's a pretty good control over or

Re: [systemd-devel] Path based activation

2018-09-12 Thread Lennart Poettering
On Mi, 12.09.18 19:17, deepan muthusamy ([email protected]) wrote: > In my case , I want to check whether the filesystem path is available or > not ( for example, /run/user/0). If this path is available I want to start > my service. > > How to do this?? Can I use the same method which you me

Re: [systemd-devel] Prepend a number to the config file name

2018-09-12 Thread Mantas Mikulėnas
On Wed, Sep 12, 2018, 17:09 Gervais, Francois wrote: > Hi, > > I saw some systemd examples on the web (i.e. 20-wired.network) that use a > number at the beginning > of the config file name like we do for udev rules. > > In systemd there's a pretty good control over ordering already in the > confi

[systemd-devel] Prepend a number to the config file name

2018-09-12 Thread Gervais, Francois
Hi, I saw some systemd examples on the web (i.e. 20-wired.network) that use a number at the beginning of the config file name like we do for udev rules. In systemd there's a pretty good control over ordering already in the configuration itself so I'm not sure there would be a need to control th

Re: [systemd-devel] Path based activation

2018-09-12 Thread deepan muthusamy
In my case , I want to check whether the filesystem path is available or not ( for example, /run/user/0). If this path is available I want to start my service. How to do this?? Can I use the same method which you mentioned? On Wed, 12 Sep 2018, 7:09 pm Mantas Mikulėnas, wrote: > On Wed, Sep 12,

Re: [systemd-devel] Path based activation

2018-09-12 Thread Mantas Mikulėnas
On Wed, Sep 12, 2018 at 4:19 PM deepan muthusamy wrote: > Can anyone give a demo of how path based activation works? > > I referred cups Daemon, but the same thing not working for me.. > Path based activation is one of the simpler types – it waits for inotify events on the specified locations, a

Re: [systemd-devel] Permanent environment variable

2018-09-12 Thread Sietse van Zanen
try man systemd-system.conf and especially DefaultEnvironment= -Sietse From: systemd-devel on behalf of deepan muthusamy Sent: Wednesday, September 12, 2018 15:16 To: Systemd Subject: [systemd-devel] Permanent environment variable How to set up environmen

[systemd-devel] Path based activation

2018-09-12 Thread deepan muthusamy
Can anyone give a demo of how path based activation works? I referred cups Daemon, but the same thing not working for me.. ___ systemd-devel mailing list [email protected] https://lists.freedesktop.org/mailman/listinfo/systemd-devel

[systemd-devel] Permanent environment variable

2018-09-12 Thread deepan muthusamy
How to set up environmental variable common for all system services. For example, If I set environment variable(Environment="variable=data") in mysystem.service file, it's scope is in that file only. I want that variable available to all service file. What should I do?

Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-12 Thread Lennart Poettering
On Mi, 12.09.18 17:28, Peter Hoeg ([email protected]) wrote: > > > How does this compare to man 5 environment.d ? > > > > You can use that too. Difference is mainly that user.conf is what > > systemd itself reads. > > So you are saying that DefaultEnvironment in user.conf will read > immediately an

Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-12 Thread Peter Hoeg
How does this compare to man 5 environment.d ? You can use that too. Difference is mainly that user.conf is what systemd itself reads. So you are saying that DefaultEnvironment in user.conf will read immediately and therefore all services started by systemd will see that but since environmen

Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-12 Thread Lennart Poettering
On Mi, 12.09.18 10:15, Peter Hoeg ([email protected]) wrote: > Hi, > > > > > So my question is, where to init variables for user units? > > > > I woluld like to have possiblity to set them as not only as fixed > > > > strings > > > > > > > > (i.e. I would to have PATH=$PATH:xxx) > > > > You can add

Re: [systemd-devel] systemd user unit - how to prepare environment?

2018-09-12 Thread Lennart Poettering
On Mi, 12.09.18 06:18, Kamil Jońca ([email protected]) wrote: > Lennart Poettering writes: > > [...] > >> > > >> > (i.e. I would to have PATH=$PATH:xxx) > > > > You can add them to ~/.config/systemd/user.conf in the Environment= > > field in the [Manager] section, see systemd-system.conf(5).x > > Tw