[systemd-devel] Is it possible to load unit files from paths other than default paths ?
Kai Krakow
hurikhan77 at gmail.com
Tue Sep 27 02:10:08 UTC 2016
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.
BTW: Please stop top-posting... It's very inconvenient to follow your
messages with an NNTP reader.
> I checked about systemd source code in github. Please see this link
>
> https://github.com/search?q=org%3Asystemd+systemd_unit_path&type=Code
>
> Even in these source files they are doing getenv and setenv for
> SYSTEMD_UNIT_PATH. I dont see any conf file using which we can
> configure the environment variable.
>
>
> Regards,
> Raghu.
>
>
> --
> Regards,
>
> Raghavendra. H. R
> (Raghu)
>
> On Mon, Sep 26, 2016 at 1:59 PM, Andrei Borzenkov
> <arvidjaar at gmail.com> wrote:
>
> > On Mon, Sep 26, 2016 at 10:59 AM, Raghavendra. H. R
> > <raghuhr84 at gmail.com> wrote:
> > > These are instructions which I tried.
> > >
> > > mkdir -p /BingoDast
> > > mount -t nfs -o nolock
> > > <ip_address>:/tftpboot/raghu/BingoDast /BingoDast
> > >
> > > export PATH=$PATH:/BingoDast/bin
> > > export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/BingoDast/lib
> > > export SYSTEMD_UNIT_PATH=/BingoDast/units
> > > echo $SYSTEMD_UNIT_PATH
> > > /BingoDast/units
> > >
> > > systemctl start bingod.service
> > > Failed to start bingod.service: Unit bingod.service failed to
> > > load: No
> > such
> > > file or directory.
> > >
> >
> > SYSTEMD_UNIT_PATH has to be set in environment of systemd, not
> > systemctl.
> > > Other options which I tried for setting SYSTEMD_UNIT_PATH are
> > > given
> > below.
> > >
> > > 1. Just gave the environment variable directly on the console
> > > SYSTEMD_UNIT_PATH=/BingoDast/units
> > >
> > > 2. Gave the environment variable along with DefaultEnvinronment
> > > tag DefaultEnvironment=SYSTEMD_UNIT_PATH=/BingoDast/units
> > >
> > >
> > > Regards,
> > > Raghu
> > >
> > >
> > > --
> > > Regards,
> > >
> > > Raghavendra. H. R
> > > (Raghu)
> > >
> > > On Mon, Sep 26, 2016 at 1:07 PM, Andrei Borzenkov
> > > <arvidjaar at gmail.com> wrote:
> [...]
> > raghuhr84 at gmail.com>
> [...]
> [...]
> > this
> [...]
> [...]
> [...]
> > arvidjaar at gmail.com>
> [...]
> [...]
> [...]
> [...]
> [...]
> [...]
> [...]
> > path
> [...]
> > library.
> [...]
> [...]
> [...]
> > the
> [...]
> [...]
> > case
> [...]
> [...]
> [...]
> > >
> > >
> >
>
--
Regards,
Kai
Replies to list-only preferred.
More information about the systemd-devel
mailing list