diff options
| author | David Lamparter <equinox@diac24.net> | 2019-02-04 19:15:54 +0100 |
|---|---|---|
| committer | David Lamparter <equinox@diac24.net> | 2019-02-04 19:17:07 +0100 |
| commit | dc73cce87e16dc599e307910c0efe0532b51cddc (patch) | |
| tree | 490367e465a98fd0d973b1ca9df0d940e89bfa42 /debian/patches/systemd-deps.patch | |
| parent | 91a79bb67c363f0bfbab0915ca4740cac5f3c209 (diff) | |
debian: fix systemd dependency spec
cf. https://github.com/FRRouting/frr/pull/3715
Signed-off-by: David Lamparter <equinox@diac24.net>
Diffstat (limited to 'debian/patches/systemd-deps.patch')
| -rw-r--r-- | debian/patches/systemd-deps.patch | 29 |
1 files changed, 29 insertions, 0 deletions
diff --git a/debian/patches/systemd-deps.patch b/debian/patches/systemd-deps.patch new file mode 100644 index 0000000000..8543fa21a2 --- /dev/null +++ b/debian/patches/systemd-deps.patch @@ -0,0 +1,29 @@ +Author: David Lamparter <equinox@diac24.net> +Subject: fix systemd install & dependencies +Last-Update: 2019-02-04 + +cf. https://github.com/FRRouting/frr/pull/3715 +(This does _not_ match the change currently proposed there, instead imitating +what NetworkManager has in its service file.) + +diff --git a/tools/frr.service b/tools/frr.service +index c7568593b36d..aa45f420fea3 100644 +--- a/tools/frr.service ++++ b/tools/frr.service +@@ -1,7 +1,9 @@ + [Unit] + Description=FRRouting + Documentation=https://frrouting.readthedocs.io/en/latest/setup.html +-After=networking.service ++Wants=network.target ++After=network-pre.target systemd-sysctl.service ++Before=network.target + OnFailure=heartbeat-failed@%n.service + + [Service] +@@ -20,4 +22,4 @@ ExecStop=/usr/lib/frr/frrinit.sh stop + ExecReload=/usr/lib/frr/frrinit.sh reload + + [Install] +-WantedBy=network-online.target ++WantedBy=multi-user.target |
