]> git.ipfire.org Git - thirdparty/bird.git/commitdiff
Pkg: Improve RPM package unit file
authorVincent Bernat <vincent@bernat.ch>
Fri, 11 Mar 2022 14:47:00 +0000 (15:47 +0100)
committerOndrej Zajicek (work) <santiago@crfreenet.org>
Fri, 11 Mar 2022 14:47:00 +0000 (15:47 +0100)
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

index fa203c7819057e5da46288b540ec6e3f6d2553f9..26bcb8a03fe5efe486c17a5eee9da7006a6d95b3 100644 (file)
@@ -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]