[systemd-devel] Is it possible to load unit files from paths other than default paths ?

Kai Krakow hurikhan77 at gmail.com
Tue Sep 27 06:49:46 UTC 2016


Am Tue, 27 Sep 2016 06:33:40 +0300
schrieb Andrei Borzenkov <arvidjaar at gmail.com>:

> 27.09.2016 05:10, Kai Krakow пишет:
> > Am Mon, 26 Sep 2016 14:30:37 +0530
> > schrieb "Raghavendra. H. R" <raghuhr84 at gmail.com>:
> >   
> >> Andrei,
> >>
> >> How to set SYSTEMD_UNIT_PATH in Systemd ?  
> > 
> > Maybe try "systemctl set-environment"? You may need to run
> > "systemctl daemon-reload" after this for the new unit files to pick
> > up. 
> 
> No, that does not work. It was already discussed previously. This is
> environment for services that are started by systemd, while you need
> to set it before starting systemd. This is challenging for something
> that runs as the very first process ever ... :)

If that stuff needs to run so isolated, one could try packaging it as
an nspawn container...


-- 
Regards,
Kai

Replies to list-only preferred.




More information about the systemd-devel mailing list