diff options
author | Vincent Bernat <vincent@bernat.ch> | 2022-03-11 15:47:00 +0100 |
---|---|---|
committer | Ondrej Zajicek (work) <santiago@crfreenet.org> | 2022-03-11 15:47:00 +0100 |
commit | c3828879a395c84bd7aac089903c88bb3a9c149d (patch) | |
tree | 7d33836986bc91b51d2c03e007aa119f73b61ff2 /distro/pkg | |
parent | 9b0b2c0d410fd26e1b48d158a667e42f4bbec52c (diff) |
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".
Diffstat (limited to 'distro/pkg')
-rw-r--r-- | distro/pkg/rpm/bird.service | 3 |
1 files changed, 2 insertions, 1 deletions
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] |