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] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Andrei Borzenkov
26.09.2016 17:58, Xen пишет: > Andrei Borzenkov schreef op 26-09-2016 15:28: > >> What effect do you expect? If service Requires mount point and mount >> point is not available, service startup fails. That is correct and >> expected behavior. If service does not require mount point, service >>

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Xen
Andrei Borzenkov schreef op 26-09-2016 15:28: What effect do you expect? If service Requires mount point and mount point is not available, service startup fails. That is correct and expected behavior. If service does not require mount point, service should be saying Wants and After. Which is at

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] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 4:20 PM, Xen wrote: ... >> >> because earlier systems (sysvinit) hat no concept like emergency mode >> as they where a lousy bunch of scripts where you ended in case of a >> crucial disk failing in a undefined state? >> >> because earlier systems had no

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Xen
Reindl Harald schreef op 26-09-2016 12:31: Am 26.09.2016 um 11:27 schrieb Oliver Neukum: On Sun, 2016-09-25 at 23:57 +0200, Reindl Harald wrote: Am 25.09.2016 um 23:52 schrieb Sergei Franco: I am looking at correct way to disable the "feature" of emergency mode when systemd encounters

[systemd-devel] Queries on Journal usage for High Available Systems

2016-09-26 Thread P.R.Dinesh
Hi, I am working on a High Availability System. we have two servers in which one will serve the active request whereas the other remains in standby mode. When the active server goes down, the standby server becomes active and starts serving the request. We want the journals of the active server

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Reindl Harald
Am 26.09.2016 um 11:27 schrieb Oliver Neukum: On Sun, 2016-09-25 at 23:57 +0200, Reindl Harald wrote: Am 25.09.2016 um 23:52 schrieb Sergei Franco: I am looking at correct way to disable the "feature" of emergency mode when systemd encounters missing block device entires in fstab. For

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] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 12:27 PM, Oliver Neukum wrote: > On Sun, 2016-09-25 at 23:57 +0200, Reindl Harald wrote: >> >> Am 25.09.2016 um 23:52 schrieb Sergei Franco: >> > I am looking at correct way to disable the "feature" of emergency mode >> > when systemd encounters missing

Re: [systemd-devel] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Oliver Neukum
On Sun, 2016-09-25 at 23:57 +0200, Reindl Harald wrote: > > Am 25.09.2016 um 23:52 schrieb Sergei Franco: > > I am looking at correct way to disable the "feature" of emergency mode > > when systemd encounters missing block device entires in fstab. > > > > For example: > > > > the following entry

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] Emergency mode if non-critical /etc/fstab entries are missing

2016-09-26 Thread Andrei Borzenkov
On Mon, Sep 26, 2016 at 8:11 AM, Mantas Mikulėnas wrote: > That said, I suspect the reason it's not done by default is that it also > needs *networking*, and every distro has its own network setup services, It also needs logind unless you prepare special PAM configuration for