Re: [systemd-devel] Path based activation error.

2018-10-05 Thread Lennart Poettering
On Fr, 14.09.18 09:50, deepan muthusamy ([email protected]) wrote: > Hi, > My myservice.path is as follows: > > *[Unit]* > *PartOf=myservice.service* > > *[Path]* > *PathExists=/run/user/1000* > > *[Install]* > *WantedBy=basic.target* > > > > Iam getting the following error: > > *myser

[systemd-devel] Path based activation error

2018-09-14 Thread deepan muthusamy
I subscribed to mailing list, eventhough iam not getting mail notification everytime. So in continuation to previous message https://lists.freedesktop.org/archives/systemd-devel/2018-September/041365.html I want my myservice.service should start when this path is available. Yaa, Path unit should

Re: [systemd-devel] Path based activation error

2018-09-14 Thread Andrei Borzenkov
14.09.2018 09:06, deepan muthusamy пишет: > Hi, > My myservice.path is as follows: > > [Unit] > PartOf=myservice.service > Do you intentionally want path unit to be stopped when triggered unit also stops? > [Path] > PathExists=/run/user/1000 > > [Install] > WantedBy=basic.target > > > > Iam

[systemd-devel] Path based activation error.

2018-09-14 Thread deepan muthusamy
Hi, My myservice.path is as follows: *[Unit]* *PartOf=myservice.service* *[Path]* *PathExists=/run/user/1000* *[Install]* *WantedBy=basic.target* Iam getting the following error: *myservice.path: Refusing to start, unit to trigger not loaded.* Want can be the possible reason for error.

[systemd-devel] Path based activation error

2018-09-14 Thread deepan muthusamy
Hi, My myservice.path is as follows: [Unit] PartOf=myservice.service [Path] PathExists=/run/user/1000 [Install] WantedBy=basic.target Iam getting the following error: myservice.path: Refusing to start, unit to trigger not loaded. Want can be the possible reason for error?? _

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] 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

[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