1 From: Scott Leggett <scott@sl.id.au>
2 Date: Sun, 5 Nov 2017 15:11:51 +1100
3 Subject: Patch .service files for Debian.
6 redhat/bgpd.service | 5 ++---
7 redhat/isisd.service | 5 ++---
8 redhat/nhrpd.service | 5 ++---
9 redhat/ospf6d.service | 5 ++---
10 redhat/ospfd.service | 5 ++---
11 redhat/pimd.service | 13 +++++++------
12 redhat/ripd.service | 5 ++---
13 redhat/ripngd.service | 5 ++---
14 redhat/zebra.service | 10 ++++++----
15 9 files changed, 27 insertions(+), 31 deletions(-)
17 diff --git a/redhat/bgpd.service b/redhat/bgpd.service
18 index a50bfff..f1ddfd9 100644
19 --- a/redhat/bgpd.service
20 +++ b/redhat/bgpd.service
21 @@ -9,10 +9,9 @@ Documentation=man:bgpd
25 -EnvironmentFile=/etc/sysconfig/quagga
26 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/bgpd.conf
27 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /etc/quagga/bgpd.conf
28 -ExecStart=/usr/sbin/bgpd -d $BGPD_OPTS -f /etc/quagga/bgpd.conf
29 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/bgpd.conf
30 +ExecStart=/usr/sbin/bgpd -d -A 127.0.0.1 -f /etc/quagga/bgpd.conf
34 diff --git a/redhat/isisd.service b/redhat/isisd.service
35 index 93663aa..a16b2f8 100644
36 --- a/redhat/isisd.service
37 +++ b/redhat/isisd.service
38 @@ -9,10 +9,9 @@ Documentation=man:isisd
42 -EnvironmentFile=/etc/sysconfig/quagga
43 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/isisd.conf
44 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /etc/quagga/isisd.conf
45 -ExecStart=/usr/sbin/isisd -d $ISISD_OPTS -f /etc/quagga/isisd.conf
46 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/isisd.conf
47 +ExecStart=/usr/sbin/isisd -d -A 127.0.0.1 -f /etc/quagga/isisd.conf
51 diff --git a/redhat/nhrpd.service b/redhat/nhrpd.service
52 index 5b4120d..15680e8 100644
53 --- a/redhat/nhrpd.service
54 +++ b/redhat/nhrpd.service
55 @@ -9,10 +9,9 @@ Documentation=man:nhrpd
59 -EnvironmentFile=/etc/sysconfig/quagga
60 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/nhrpd.conf
61 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /etc/quagga/nhrpd.conf
62 -ExecStart=/usr/sbin/nhrpd -d $NHRPD_OPTS -f /etc/quagga/nhrpdd.conf
63 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/nhrpd.conf
64 +ExecStart=/usr/sbin/nhrpd -d -A 127.0.0.1 -f /etc/quagga/nhrpd.conf
68 diff --git a/redhat/ospf6d.service b/redhat/ospf6d.service
69 index 3c1c978..c883e5c 100644
70 --- a/redhat/ospf6d.service
71 +++ b/redhat/ospf6d.service
72 @@ -9,10 +9,9 @@ Documentation=man:ospf6d
76 -EnvironmentFile=/etc/sysconfig/quagga
77 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/ospf6d.conf
78 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /etc/quagga/ospf6d.conf
79 -ExecStart=/usr/sbin/ospf6d -d $OSPF6D_OPTS -f /etc/quagga/ospf6d.conf
80 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/ospf6d.conf
81 +ExecStart=/usr/sbin/ospf6d -d -A ::1 -f /etc/quagga/ospf6d.conf
85 diff --git a/redhat/ospfd.service b/redhat/ospfd.service
86 index 0084b6c..57b3bee 100644
87 --- a/redhat/ospfd.service
88 +++ b/redhat/ospfd.service
89 @@ -9,10 +9,9 @@ Documentation=man:ospfd
93 -EnvironmentFile=/etc/sysconfig/quagga
94 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/ospfd.conf
95 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /etc/quagga/ospfd.conf
96 -ExecStart=/usr/sbin/ospfd -d $OSPFD_OPTS -f /etc/quagga/ospfd.conf
97 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/ospfd.conf
98 +ExecStart=/usr/sbin/ospfd -d -A 127.0.0.1 -f /etc/quagga/ospfd.conf
102 diff --git a/redhat/pimd.service b/redhat/pimd.service
103 index 1916846..b2d33f3 100644
104 --- a/redhat/pimd.service
105 +++ b/redhat/pimd.service
108 Description=PIM multicast routing engine
109 -BindTo=zebra.service
110 -After=syslog.target network.target zebra.service
111 +BindsTo=zebra.service
112 +Wants=network.target
113 +After=zebra.service network-pre.target
114 +Before=network.target
115 ConditionPathExists=/etc/quagga/pimd.conf
116 Documentation=man:pimd
120 -EnvironmentFile=/etc/sysconfig/quagga
121 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/pimd.conf
122 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /etc/quagga/pimd.conf
123 -ExecStart=/usr/sbin/pimd -d $PIMD_OPTS -f /etc/quagga/pimd.conf
124 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/pimd.conf
125 +ExecStart=/usr/sbin/pimd -d -A 127.0.0.1 -f /etc/quagga/pimd.conf
129 -WantedBy=network.target
130 +WantedBy=multi-user.target
131 diff --git a/redhat/ripd.service b/redhat/ripd.service
132 index 103b5a9..d6290e0 100644
133 --- a/redhat/ripd.service
134 +++ b/redhat/ripd.service
135 @@ -9,10 +9,9 @@ Documentation=man:ripd
139 -EnvironmentFile=/etc/sysconfig/quagga
140 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/ripd.conf
141 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /etc/quagga/ripd.conf
142 -ExecStart=/usr/sbin/ripd -d $RIPD_OPTS -f /etc/quagga/ripd.conf
143 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/ripd.conf
144 +ExecStart=/usr/sbin/ripd -d -A 127.0.0.1 -f /etc/quagga/ripd.conf
148 diff --git a/redhat/ripngd.service b/redhat/ripngd.service
149 index 6fe6ba8..2e4ccb8 100644
150 --- a/redhat/ripngd.service
151 +++ b/redhat/ripngd.service
152 @@ -9,10 +9,9 @@ Documentation=man:ripngd
156 -EnvironmentFile=/etc/sysconfig/quagga
157 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/ripngd.conf
158 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /etc/quagga/ripngd.conf
159 -ExecStart=/usr/sbin/ripngd -d $RIPNGD_OPTS -f /etc/quagga/ripngd.conf
160 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/ripngd.conf
161 +ExecStart=/usr/sbin/ripngd -d -A ::1 -f /etc/quagga/ripngd.conf
165 diff --git a/redhat/zebra.service b/redhat/zebra.service
166 index fa5a004..5111677 100644
167 --- a/redhat/zebra.service
168 +++ b/redhat/zebra.service
169 @@ -8,13 +8,15 @@ Documentation=man:zebra
173 -EnvironmentFile=-/etc/sysconfig/quagga
174 ExecStartPre=/sbin/ip route flush proto zebra
175 ExecStartPre=-/bin/chmod -f 640 /etc/quagga/vtysh.conf /etc/quagga/zebra.conf
176 -ExecStartPre=-/bin/chown -f $QUAGGA_USER:$QUAGGA_GROUP /run/quagga /etc/quagga/zebra.conf
177 -ExecStartPre=-/bin/chown -f ${QUAGGA_USER}${VTY_GROUP:+":$VTY_GROUP"} quaggavty /etc/quagga/vtysh.conf
178 -ExecStart=/usr/sbin/zebra -d $ZEBRA_OPTS -f /etc/quagga/zebra.conf
179 +ExecStartPre=-/bin/chown -f quagga:quagga /etc/quagga/zebra.conf
180 +ExecStartPre=-/bin/chown -f quagga:quaggavty /etc/quagga/vtysh.conf
181 +ExecStart=/usr/sbin/zebra -d -A 127.0.0.1 -f /etc/quagga/zebra.conf
183 +RuntimeDirectory=quagga
184 +RuntimeDirectoryMode=775
188 WantedBy=multi-user.target