<div dir="ltr"><div class="gmail_extra"><div class="gmail_quote">On Thu, Sep 22, 2016 at 9:13 AM, Raghavendra. H. R <span dir="ltr"><<a href="mailto:raghuhr84@gmail.com" target="_blank">raghuhr84@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div dir="ltr"><span class=""><div style="font-family:times new roman,serif;font-size:large">Thank you for the suggestions.</div></span><div style="font-family:times new roman,serif;font-size:large">But with this suggestion I need to run as user something like that.</div><span class=""><div style="font-family:times new roman,serif;font-size:large"><br></div><div style="font-family:times new roman,serif;font-size:large">In normal init.d systems, we have environment variables like PATH & LD_LIBRARY_PATH. <br></div></span><div style="font-family:times new roman,serif;font-size:large">No matter where I place my new executable or library, adding that path into these environment variables is enough to execute or link the library.</div></div></blockquote><div><br></div><div>Oh, sure, you still have PATH and LD_LIBRARY_PATH. But you weren't asking about *executables*, you were asking about *service scripts*, and in normal init.d systems you *don't* have anything like INITSCRIPT_PATH either, do you? `service` uses /etc/init.d, the boot process uses /etc/rc[2345].d, and that's it. Isn't it?</div></div><div><br></div>-- <br><div class="gmail_signature" data-smartmail="gmail_signature"><div dir="ltr">Mantas Mikulėnas <<a href="mailto:grawity@gmail.com" target="_blank">grawity@gmail.com</a>></div></div>
</div></div>