Discussion:
Path based activation error.
(too old to reply)
deepan muthusamy
2018-09-14 04:20:41 UTC
Permalink
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.
Lennart Poettering
2018-10-05 18:05:37 UTC
Permalink
Post by deepan muthusamy
Hi,
*[Unit]*
*PartOf=myservice.service*
*[Path]*
*PathExists=/run/user/1000*
*[Install]*
*WantedBy=basic.target*
*myservice.path: Refusing to start, unit to trigger not loaded.*
Want can be the possible reason for error.
Most likely there's something wrong in the service unit you want to
start i.e. in myservice.service. For example both ExecStart= and
ExecStop= missing or so... Check the logs.

Lennart
--
Lennart Poettering, Red Hat
Continue reading on narkive:
Loading...