<div dir="ltr"><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large">These are instructions which I tried.</div><div class="gmail_default" style="font-family:"times new roman",serif;font-size:large"><br></div><div class="gmail_default"><div class="gmail_default"><font face="times new roman, serif" size="4">mkdir -p /BingoDast</font></div><div class="gmail_default"><font face="times new roman, serif" size="4">mount -t nfs -o nolock <ip_address>:/tftpboot/raghu/BingoDast /BingoDast</font></div><div class="gmail_default"><font face="times new roman, serif" size="4"><br></font></div><div class="gmail_default"><font face="times new roman, serif" size="4">export PATH=$PATH:/BingoDast/bin</font></div><div class="gmail_default"><font face="times new roman, serif" size="4">export LD_LIBRARY_PATH=$LD_LIBRARY_PATH:/BingoDast/lib</font></div><div class="gmail_default"><font face="times new roman, serif" size="4">export SYSTEMD_UNIT_PATH=/BingoDast/units</font></div><div class="gmail_default"><font face="times new roman, serif" size="4">echo $SYSTEMD_UNIT_PATH</font></div><div class="gmail_default"><font face="times new roman, serif" size="4">/BingoDast/units</font></div><div class="gmail_default"><font face="times new roman, serif" size="4"><br></font></div><div class="gmail_default"><font face="times new roman, serif" size="4">systemctl start bingod.service</font></div><div class="gmail_default"><font face="times new roman, serif" size="4"><i><b>Failed to start bingod.service: Unit bingod.service failed to load: No such file or directory.</b></i></font></div><div class="gmail_default"><font face="times new roman, serif" size="4"><br></font></div><div class="gmail_default"><font face="times new roman, serif" size="4">Other options which I tried for setting SYSTEMD_UNIT_PATH are given below.</font></div><div class="gmail_default"><font face="times new roman, serif" size="4"><br></font></div><div class="gmail_default"><font face="times new roman, serif" size="4">1. Just gave the environment variable directly on the console</font></div><div class="gmail_default"><font face="times new roman, serif" size="4"> </font><span style="font-family:"times new roman",serif;font-size:large">SYSTEMD_UNIT_PATH=/BingoDast/units</span></div><div class="gmail_default"><span style="font-family:"times new roman",serif;font-size:large"><br></span></div><div class="gmail_default"><span style="font-family:"times new roman",serif;font-size:large">2. Gave the environment variable along with DefaultEnvinronment tag</span></div><div class="gmail_default"><font face="times new roman, serif" size="4"> DefaultEnvironment=</font><span style="font-family:"times new roman",serif;font-size:large">SYSTEMD_UNIT_PATH=/BingoDast/units</span><span style="font-family:"times new roman",serif;font-size:large"><br></span></div><div class="gmail_default"><span style="font-family:"times new roman",serif;font-size:large"><br></span></div><div class="gmail_default"><span style="font-family:"times new roman",serif;font-size:large"><br></span></div><div class="gmail_default"><span style="font-family:"times new roman",serif;font-size:large">Regards,</span></div><div class="gmail_default"><span style="font-family:"times new roman",serif;font-size:large">Raghu</span></div><div class="gmail_default"><span style="font-family:"times new roman",serif;font-size:large"><br></span></div></div></div><div class="gmail_extra"><br clear="all"><div><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr"><div><font style="font-family:times new roman,serif" size="2"></font><font face="times new roman,serif"><font size="4">--<br>Regards,<br><br>Raghavendra. H. R<br>(Raghu)</font><br></font></div></div></div></div>
<br><div class="gmail_quote">On Mon, Sep 26, 2016 at 1:07 PM, Andrei Borzenkov <span dir="ltr"><<a href="mailto:arvidjaar@gmail.com" target="_blank">arvidjaar@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><span class="">On Mon, Sep 26, 2016 at 10:06 AM, Raghavendra. H. R <<a href="mailto:raghuhr84@gmail.com">raghuhr84@gmail.com</a>> wrote:<br>
> But SYTEMD_UNIT_PATH isn't working. I added my executables path for this env<br>
> variable but whatever I add isn't reflected for this variable. If I do echo<br>
<br>
</span>Repeating this 100 times won't make it more clear. I already asked you<br>
to paste exact commands and their output that you used to "add your<br>
path for this env variable".<br>
<div class="HOEnZb"><div class="h5"><br>
> of $SYSTEMD_UNIT_PATH. Its all empty. My executables are not able to find<br>
> the path and it is not running.<br>
><br>
> --<br>
> Regards,<br>
><br>
> Raghavendra. H. R<br>
> (Raghu)<br>
><br>
> On Thu, Sep 22, 2016 at 12:26 PM, Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>><br>
> wrote:<br>
>><br>
>> On Thu, Sep 22, 2016 at 9:18 AM, Raghavendra. H. R <<a href="mailto:raghuhr84@gmail.com">raghuhr84@gmail.com</a>><br>
>> wrote:<br>
>> > Thank you for the suggestions.<br>
>> > But with this suggestion i.e., generator file, I again need to<br>
>> > add/modify<br>
>> > some files.<br>
>> ><br>
>><br>
>> You need to add/modify some files to implement your service anyway. I<br>
>> do not see how one more file is a problem so far.<br>
>><br>
>> > All I'm looking into is I mount my binaries and unit files under /mnt.<br>
>> > By<br>
>> > setting any environment variable like SYSTEMD_UNIT_PATH, systemd should<br>
>> > pick<br>
>> > the unit files from /mnt and execute my binaries as per the instructions<br>
>> > given in unit file.<br>
>> ><br>
>><br>
>> Which is exactly what it does. You just need to set variable in<br>
>> environment of systemd.<br>
>><br>
>> > In normal init.d systems, we have environment variables like PATH &<br>
>> > LD_LIBRARY_PATH.<br>
>> > No matter where I place my new executable or library, adding new path<br>
>> > into<br>
>> > these environment variables is enough to execute or link the library.<br>
>> ><br>
>> > Probably this kind of facility is not available in Systemd init systems.<br>
>> ><br>
>> > --<br>
>> > Regards,<br>
>> ><br>
>> > Raghavendra. H. R<br>
>> > (Raghu)<br>
>> ><br>
>> > On Wed, Sep 21, 2016 at 10:40 PM, Andrei Borzenkov <<a href="mailto:arvidjaar@gmail.com">arvidjaar@gmail.com</a>><br>
>> > wrote:<br>
>> >><br>
>> >> <a href="tel:21.09.2016%2014" value="+12109201614">21.09.2016 14</a>:26, Raghavendra. H. R пишет:<br>
>> >> > Hi,<br>
>> >> ><br>
>> >> > I'm newbie with systemd boot system and I need help in resolving one<br>
>> >> > issue.<br>
>> >> ><br>
>> >> > I would like to create a service under a customized path Eg:/mnt and<br>
>> >> > systemd should be able to pick my unit file from this.<br>
>> >> ><br>
>> >> > I tried by setting *Environment=SYSTEMD_UNIT_<wbr>PATH=/mnt *from the<br>
>> >> > console<br>
>> >><br>
>> >> This should be set in environment of srarted systemd, which in case of<br>
>> >> systemwide init effectively means either you need to use some wrapper<br>
>> >> to<br>
>> >> set it and exec systemd or hack initrd.<br>
>> >><br>
>> >> Also SYSTEMD_UNIT_PATH does not really play nicely with priorities of<br>
>> >> unit locations (run-time vs. sysadmin vs. shipped).<br>
>> >><br>
>> >> May be it is simpler to install generator that copies your unit<br>
>> >> definition in standard location. This guarantees it is available before<br>
>> >> systemd starts.<br>
>> ><br>
>> ><br>
><br>
><br>
</div></div></blockquote></div><br></div>