forked from openstack-archive/networking-calico
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add service framework around Calico DHCP agent
Change-Id: I094d4dcc17cce23fda34912d410335a6e2821be2
- Loading branch information
Neil Jerram
authored and
Neil Jerram
committed
Feb 9, 2016
1 parent
b085fb0
commit 27ea7ca
Showing
7 changed files
with
105 additions
and
7 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1 +0,0 @@ | ||
usr/bin/calico-dhcp-agent usr/bin | ||
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
usr/bin/calico-dhcp-agent usr/bin |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
# vim:set ft=upstart ts=2 et: | ||
description "Calico DHCP agent" | ||
author "Neil Jerram <neil@projectcalico.org>" | ||
|
||
start on stopped rc RUNLEVEL=[2345] | ||
stop on runlevel [!2345] | ||
|
||
limit nofile 32000 32000 | ||
|
||
respawn | ||
respawn limit 5 10 | ||
|
||
exec /usr/bin/calico-dhcp-agent --config-file /etc/neutron/neutron.conf |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
[Unit] | ||
Description=Calico DHCP agent | ||
After=syslog.target network.target | ||
|
||
[Service] | ||
User=root | ||
ExecStart=/usr/bin/calico-dhcp-agent --config-file /etc/neutron/neutron.conf | ||
KillMode=process | ||
Restart=on-failure | ||
LimitNOFILE=32000 | ||
|
||
[Install] | ||
WantedBy=multi-user.target |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters