Gentoo Archives: gentoo-user

From: Alarig Le Lay <alarig@××××××××××.fr>
To: gentoo-user@l.g.o
Subject: [gentoo-user] Question about bird init script
Date: Mon, 04 Mar 2019 10:34:13
Message-Id: 20190304103357.x6gvk2ln6xvzbu3l@mew.swordarmor.fr
1 Hi again,
2
3 On another box, I’m trying to update to bird 2.0.4. I just copied the
4 ebuild and changed the version. If you want to have a look, it’s here:
5 https://git.grifon.fr/alarig/SwordArMor-gentoo-overlay/src/branch/master/net-misc/bird
6
7 It compiles well, but I have a weird behaviour on the service if I want
8 to stop it.
9 judicael-ovpn2 ~ # rc-service bird stop
10 * Stopping BIRD ...
11 * start-stop-daemon: 1 process refused to stop
12 * Failed to stop BIRD [ !! ]
13 * ERROR: bird failed to stop
14
15 But the process is actually killed and the service marked as crashed.
16 judicael-ovpn2 ~ # ps aux | grep bird
17 root 16679 0.0 0.1 10860 2152 pts/1 R+ 10:48 0:00 grep --colour=auto bird
18 judicael-ovpn2 ~ # rc-service bird status
19 * status: crashed
20
21
22 Otherwise, if I restart it, it works well.
23 judicael-ovpn2 ~ # rc-service bird zap
24 * Manually resetting bird to stopped state
25 judicael-ovpn2 ~ # rc-service bird restart
26 * Starting BIRD ... [ ok ]
27 judicael-ovpn2 ~ # ps aux | grep bird
28 root 16951 50.1 1.7 40304 35128 ? Rs 10:49 0:03 /usr/sbin/bird -c /etc/bird.conf -s /var/run/bird.ctl
29 root 17063 0.0 0.1 10860 2168 pts/1 S+ 10:49 0:00 grep --colour=auto bird
30 judicael-ovpn2 ~ # birdc 'sh pr'
31 BIRD 2.0.4 ready.
32 Name Proto Table State Since Info
33 device1 Device --- up 10:49:03.725
34 direct1 Direct --- up 10:49:03.725
35 kernel_ipv4 Kernel master4 up 10:49:03.725
36 kernel_ipv6 Kernel master6 up 10:49:03.725
37 ibgp_nominoe_ipv4 BGP --- up 10:49:05.942 Established
38 ibgp_nominoe_ipv6 BGP --- up 10:49:05.942 Established
39 ibgp_budic_ipv4 BGP --- up 10:49:07.189 Established
40 ibgp_budic_ipv6 BGP --- up 10:49:07.656 Established
41 ospf_ipv4 OSPF master4 up 10:49:03.725 Running
42 ospf_ipv6 OSPF master6 up 10:49:03.725 Running
43
44
45 I looked at the init script (in the files dir of the ebuild), but I
46 didn’t see what could fail.
47
48 Thanks,
49 --
50 Alarig

Replies

Subject Author
Re: [gentoo-user] Question about bird init script Michael Orlitzky <mjo@g.o>