From c3828879a395c84bd7aac089903c88bb3a9c149d Mon Sep 17 00:00:00 2001 From: Vincent Bernat Date: Fri, 11 Mar 2022 15:47:00 +0100 Subject: [PATCH] Pkg: Improve RPM package unit file Update the RPM package unit file to check configuration before start and to use "birdc configure" instead of "kill -HUP". --- distro/pkg/rpm/bird.service | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/distro/pkg/rpm/bird.service b/distro/pkg/rpm/bird.service index fa203c78..26bcb8a0 100644 --- a/distro/pkg/rpm/bird.service +++ b/distro/pkg/rpm/bird.service @@ -5,8 +5,9 @@ After=network.target [Service] Type=simple +ExecStartPre=/usr/sbin/bird -p ExecStart=/usr/sbin/bird -f -u bird -g bird -ExecReload=/bin/kill -HUP $MAINPID +ExecReload=/usr/sbin/birdc configure Restart=on-failure [Install]