[systemd-devel] Path based activation error.

Lennart Poettering lennart at poettering.net
Fri Oct 5 18:05:37 UTC 2018


On Fr, 14.09.18 09:50, deepan muthusamy (deepan.m2903 at gmail.com) 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:
> 
> *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


More information about the systemd-devel mailing list