BIRD Crashes
Inrin
inrin at jikken.de
Tue Aug 23 18:21:54 CEST 2022
Hi Ian,
On Fri, Aug 19, 2022 at 09:26:16AM +0100, Ian Chilton wrote:
>We do use systemd to manage the bird processes. Do you have it successfully creating core dumps on crashes with systemd? - would you mind sharing your unit file?
You have to set ``LimitCORE=unlimited'' (or similar value).
Tested it with ``pkill -11 bird'' and got a coredump:
TIME PID UID GID SIG COREFILE EXE SIZE
Tue 2022-08-23 18:15:47 CEST 85265 976 976 SIGSEGV present /usr/bin/bird 429.9K
The config I'm currently using is: (I only changed the '-R' and added the LimitCORE for this test here)
-----------------------------------------------------------------------
# /etc/systemd/system/bird.service
[Unit]
Description=BIRD routing daemon
After=network.target
[Service]
Type=forking
LimitCORE=unlimited
ExecStart=/usr/bin/bird -R
ExecReload=/usr/bin/birdc configure
ExecStop=/usr/bin/birdc down
RuntimeDirectory=bird
RuntimeDirectoryMode=0750
DynamicUser=true
User=bird
ProtectSystem=strict
ProtectHome=true
ProtectKernelTunables=true
ProtectControlGroups=true
PrivateTmp=true
PrivateDevices=true
CapabilityBoundingSet=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
AmbientCapabilities=CAP_NET_ADMIN CAP_NET_BIND_SERVICE CAP_NET_RAW
[Install]
WantedBy=multi-user.target
-----------------------------------------------------------------------
Greetings
Inrin
More information about the Bird-users
mailing list