Skip to content

Commit

Permalink
Merge pull request #3715 from qlyoung/fix-systemd-deps
Browse files Browse the repository at this point in the history
tools: fix systemd dependency graph
  • Loading branch information
eqvinox committed Feb 11, 2019
2 parents 97c6009 + efbf903 commit 0240fee
Show file tree
Hide file tree
Showing 2 changed files with 8 additions and 5 deletions.
7 changes: 4 additions & 3 deletions redhat/frr.service
@@ -1,6 +1,8 @@
[Unit]
Description=FRRouting (FRR)
After=syslog.target networking.service
Wants=network.target
After=network-pre.target systemd-sysctl.service
Before=network.target
OnFailure=heartbeat-failed@%n.service

[Service]
Expand All @@ -19,5 +21,4 @@ ExecStop=/usr/lib/frr/frr stop
ExecReload=/usr/lib/frr/frr reload

[Install]
WantedBy=network-online.target

WantedBy=multi-user.target
6 changes: 4 additions & 2 deletions 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]
Expand All @@ -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

0 comments on commit 0240fee

Please sign in to comment.