Package: exabgp
Version: 4.2.8-2
Severity: normal



-- System Information:
Debian Release: 11.2
  APT prefers stable-updates
  APT policy: (500, 'stable-updates'), (500, 'stable-security'), (500, 'stable')
Architecture: amd64 (x86_64)

Kernel: Linux 5.10.0-11-amd64 (SMP w/2 CPU threads)
Locale: LANG=en_US.UTF-8, LC_CTYPE=en_US.UTF-8 (charmap=UTF-8), 
LANGUAGE=en_US:en
Shell: /bin/sh linked to /usr/bin/dash
Init: systemd (via /run/systemd/system)
LSM: AppArmor: enabled

Versions of packages exabgp depends on:
ii  adduser                3.118
ii  debconf                1.5.77
ii  dpkg                   1.20.9
ii  lsb-base               11.1.0
ii  python3-exabgp         4.2.8-2
ii  python3-pkg-resources  52.0.0-4
ii  ucf                    3.0043

exabgp recommends no packages.

exabgp suggests no packages.

-- no debconf information

Hi
It seems with systemd the /etc/exabgp/exabgp.env file is not loaded by deafult.

as you can see on a fresh exabgp installation it looks like:
host:~$ ps aux | grep exabg
exabgp    172453  0.0  0.5  27696 21660 ?        Ss   Mär03   3:02 
/usr/bin/python3 /usr/sbin/exabgp /etc/exabgp/exabgp.conf

#---------------------------------------#
After modifying the systemd file like:
#---------------------------------------#

$ cat /lib/systemd/system/exabgp.service
[Unit]
Description=ExaBGP
Documentation=man:exabgp(1)
Documentation=man:exabgp.conf(5)
Documentation=https://github.com/Exa-Networks/exabgp/wiki
After=network.target
ConditionPathExists=/etc/exabgp/exabgp.conf

[Service]
Environment=exabgp_daemon_daemonize=false
User=exabgp
Group=exabgp
RuntimeDirectory=exabgp
RuntimeDirectoryMode=0750
ExecStartPre=-/usr/bin/mkfifo /run/exabgp/exabgp.in
ExecStartPre=-/usr/bin/mkfifo /run/exabgp/exabgp.out
ExecStart=/usr/sbin/exabgp -e /etc/exabgp/exabgp.env /etc/exabgp/exabgp.conf # 
<<<<< manually added env file
ExecReload=/bin/kill -USR1 $MAINPID
Restart=always
CapabilityBoundingSet=CAP_NET_ADMIN
AmbientCapabilities=CAP_NET_ADMIN

[Install]
WantedBy=multi-user.target
#---------------------------------------#


And the env file is loded as expected:
09.03 13:16:28 root|ns-prx1-cbw:~$ ps aux | grep exabgp
exabgp   4120465  1.0  0.5  27444 21436 ?        Ss   11:40   1:01 
/usr/bin/python3 /usr/sbin/exabgp -e /etc/exabgp/exabgp.env 
/etc/exabgp/exabgp.conf


#---------------------------------------#

To change the systemd file by hand should not be a solution.
If i'm not wrong with my finding, please add the environment file to the exabgp 
startup command.

Thank you very much for your work!
Best regards
A

Reply via email to