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

2016-09-27 Thread Kai Krakow
Am Tue, 27 Sep 2016 06:33:40 +0300 schrieb Andrei Borzenkov : > 27.09.2016 05:10, Kai Krakow пишет: > > Am Mon, 26 Sep 2016 14:30:37 +0530 > > schrieb "Raghavendra. H. R" : > > > >> Andrei, > >> > >> How to set SYSTEMD_UNIT_PATH in Systemd ? > > > >

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

2016-09-26 Thread Andrei Borzenkov
27.09.2016 05:10, Kai Krakow пишет: > Am Mon, 26 Sep 2016 14:30:37 +0530 > schrieb "Raghavendra. H. R" : > >> 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

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

2016-09-26 Thread Kai Krakow
Am Mon, 26 Sep 2016 14:30:37 +0530 schrieb "Raghavendra. H. R" : > 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

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

2016-09-26 Thread Zbigniew Jędrzejewski-Szmek
On Wed, Sep 21, 2016 at 04:56:52PM +0530, Raghavendra. H. R wrote: > Hi, > I would like to create a service under a customized path Eg:/mnt and > systemd should be able to pick my unit file from this. Use 'systemctl link /opt/BingoGast/whatever.service'. This will create a symlink that will tell

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

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 12:00 PM, Raghavendra. H. R wrote: > Andrei, > > How to set SYSTEMD_UNIT_PATH in Systemd ? > I already answered this in one of earlier replies. > I checked about systemd source code in github. Please see this link > >

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

2016-09-26 Thread Raghavendra. H. R
Andrei, How to set SYSTEMD_UNIT_PATH in Systemd ? I checked about systemd source code in github. Please see this link https://github.com/search?q=org%3Asystemd+systemd_unit_path=Code Even in these source files they are doing getenv and setenv for SYSTEMD_UNIT_PATH. I dont see any conf file

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

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 10:59 AM, Raghavendra. H. R wrote: > These are instructions which I tried. > > mkdir -p /BingoDast > mount -t nfs -o nolock :/tftpboot/raghu/BingoDast /BingoDast > > export PATH=$PATH:/BingoDast/bin > export

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

2016-09-26 Thread Raghavendra. H. R
These are instructions which I tried. mkdir -p /BingoDast mount -t nfs -o nolock :/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

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

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 10:06 AM, Raghavendra. H. R wrote: > But SYTEMD_UNIT_PATH isn't working. I added my executables path for this env > variable but whatever I add isn't reflected for this variable. If I do echo Repeating this 100 times won't make it more clear. I

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

2016-09-26 Thread Raghavendra. H. R
But SYTEMD_UNIT_PATH isn't working. I added my executables path for this env variable but whatever I add isn't reflected for this variable. If I do echo of $SYSTEMD_UNIT_PATH. Its all empty. My executables are not able to find the path and it is not running. -- Regards, Raghavendra. H. R (Raghu)

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

2016-09-26 Thread Raghavendra. H. R
I will explain you my problem statement. I want to provide a piece of executable to my third party. Folder structure of my output is something like this. /BingoDast |___ /BingoDast/bin/ ---> this contains exectuables |___ /BingoDast/lib/ > this

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

2016-09-23 Thread Kai Krakow
Am Thu, 22 Sep 2016 11:43:56 +0530 schrieb "Raghavendra. H. R" : > Thank you for the suggestions. > But with this suggestion I need to run as user something like that. > > In normal init.d systems, we have environment variables like PATH & > LD_LIBRARY_PATH. > No matter

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

2016-09-22 Thread Mantas Mikulėnas
On Thu, Sep 22, 2016 at 9:13 AM, Raghavendra. H. R wrote: > Thank you for the suggestions. > But with this suggestion I need to run as user something like that. > > In normal init.d systems, we have environment variables like PATH & > LD_LIBRARY_PATH. > No matter where I

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

2016-09-22 Thread Andrei Borzenkov
On Thu, Sep 22, 2016 at 9:18 AM, Raghavendra. H. R wrote: > Thank you for the suggestions. > But with this suggestion i.e., generator file, I again need to add/modify > some files. > You need to add/modify some files to implement your service anyway. I do not see how one

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

2016-09-22 Thread Raghavendra. H. R
Thank you for the suggestions. But with this suggestion I need to run as user something like that. In normal init.d systems, we have environment variables like PATH & LD_LIBRARY_PATH. No matter where I place my new executable or library, adding that path into these environment variables is enough

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

2016-09-22 Thread Raghavendra. H. R
Thank you for the suggestions. But with this suggestion i.e., generator file, I again need to add/modify some files. All I'm looking into is I mount my binaries and unit files under /mnt. By setting any environment variable like SYSTEMD_UNIT_PATH, systemd should pick the unit files from /mnt and

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

2016-09-21 Thread Kai Krakow
Am Wed, 21 Sep 2016 16:56:52 +0530 schrieb "Raghavendra. H. R" : > Hi, > > I'm newbie with systemd boot system and I need help in resolving one > issue. > > I would like to create a service under a customized path Eg:/mnt and > systemd should be able to pick my unit file

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

2016-09-21 Thread Andrei Borzenkov
21.09.2016 14:26, Raghavendra. H. R пишет: > Hi, > > I'm newbie with systemd boot system and I need help in resolving one issue. > > I would like to create a service under a customized path Eg:/mnt and > systemd should be able to pick my unit file from this. > > I tried by setting

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

2016-09-21 Thread Raghavendra. H. R
Hi, I'm newbie with systemd boot system and I need help in resolving one issue. I would like to create a service under a customized path Eg:/mnt and systemd should be able to pick my unit file from this. I tried by setting *Environment=SYSTEMD_UNIT_PATH=/mnt *from the console but it didnt help