Skip to content

Commit

Permalink
[services] Remove explicit dependencies from dhcp_relay service file,…
Browse files Browse the repository at this point in the history
… control in swss.sh (#3823)
  • Loading branch information
jleveque authored and yxieca committed Nov 27, 2019
1 parent d0237ec commit 3920ac2
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
6 changes: 3 additions & 3 deletions files/build_templates/dhcp_relay.service.j2
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
[Unit]
Description=DHCP relay container
Requires=updategraph.service swss.service teamd.service
After=updategraph.service swss.service teamd.service
Requires=updategraph.service
After=updategraph.service swss.service syncd.service teamd.service
Before=ntp-config.service

[Service]
Expand All @@ -11,4 +11,4 @@ ExecStart=/usr/bin/{{ docker_container_name }}.sh wait
ExecStop=/usr/bin/{{ docker_container_name }}.sh stop

[Install]
WantedBy=multi-user.target swss.service teamd.service
WantedBy=multi-user.target
2 changes: 1 addition & 1 deletion files/scripts/swss.sh
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@

SERVICE="swss"
PEER="syncd"
DEPENDENT="teamd radv"
DEPENDENT="teamd radv dhcp_relay"
DEBUGLOG="/tmp/swss-syncd-debug.log"
LOCKFILE="/tmp/swss-syncd-lock"

Expand Down

0 comments on commit 3920ac2

Please sign in to comment.