Skip to content

Commit

Permalink
Add 'One Image' implementation for DHCP relay (hopefully fix builds)
Browse files Browse the repository at this point in the history
  • Loading branch information
jleveque committed Feb 4, 2017
1 parent f6a509c commit e75acfe
Showing 1 changed file with 12 additions and 0 deletions.
12 changes: 12 additions & 0 deletions files/build_templates/dhcp_relay.service.j2
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
[Unit]
Description=DHCP relay container
Requires=docker.service
After=docker.service

[Service]
User={{ sonicadmin_user }}
ExecStart=/usr/bin/{{ docker_container_name }}.sh start
ExecStop=/usr/bin/{{ docker_container_name }}.sh stop

[Install]
WantedBy=multi-user.target

2 comments on commit e75acfe

@jleveque
Copy link
Contributor Author

@jleveque jleveque commented on e75acfe Feb 4, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Accidentally pushed this directly to master. It looks like my previous commit that broke the build has been reverted in PR #257, so this commit should be innocuous. Will need to try re-committing PR #250 to see if this fixes the build.

@lguohan
Copy link
Collaborator

@lguohan lguohan commented on e75acfe Feb 5, 2017

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

ok.

Please sign in to comment.