From 14f02e6ca798174c5f9b40470c50c6815bc57bf2 Mon Sep 17 00:00:00 2001 From: Justin Tung Date: Sun, 22 Apr 2018 21:01:56 -0400 Subject: [PATCH 1/3] * fix: add restart on failure. --- dhcpd/__init__.py | 1 + 1 file changed, 1 insertion(+) diff --git a/dhcpd/__init__.py b/dhcpd/__init__.py index fff8bc5..9fc743f 100644 --- a/dhcpd/__init__.py +++ b/dhcpd/__init__.py @@ -126,6 +126,7 @@ class DHCPD(Model): [Service] ExecStart = /usr/sbin/dhcpd -q -d --no-pid -cf /etc/dhcp/dhcpd-{}.conf {} +Restart = on-failure [Install] WantedBy = multi-user.target From 6abc0f731e51d1fe613ae5b3187f1610195d1335 Mon Sep 17 00:00:00 2001 From: Justin Tung Date: Sun, 22 Apr 2018 21:46:56 -0400 Subject: [PATCH 2/3] *fix: add Restart=always in dhcpd.service. --- build-deb/debian/changelog | 6 ++++++ bundle.json | 2 +- 2 files changed, 7 insertions(+), 1 deletion(-) diff --git a/build-deb/debian/changelog b/build-deb/debian/changelog index e2276a0..9630afe 100644 --- a/build-deb/debian/changelog +++ b/build-deb/debian/changelog @@ -1,3 +1,9 @@ +sanji-bundle-dhcpd (3.2.4) unstable; urgency=low + + * fix: add restart on failure. + + -- JustinCP Tung Sun, 22 Apr 2018 09:02:32 +0800 + sanji-bundle-dhcpd (3.2.3) unstable; urgency=low * fix: remove isc-dhcp-client deps which changed adding to sanji-bundle-ethernet. diff --git a/bundle.json b/bundle.json index 53c8d01..8066ee4 100644 --- a/bundle.json +++ b/bundle.json @@ -1,6 +1,6 @@ { "name": "dhcpd", - "version": "3.2.3", + "version": "3.2.4", "author": "Zack YL Shih", "email": "zackyl.shih@moxa.com", "description": "Handles the DHCP Server configuration", From a263b0e0bcfcf491e0472fa3392cdb0a412a5460 Mon Sep 17 00:00:00 2001 From: Justin Tung Date: Sun, 22 Apr 2018 23:26:14 -0400 Subject: [PATCH 3/3] 3.2.4 --- build-deb/debian/changelog | 2 +- dhcpd/__init__.py | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/build-deb/debian/changelog b/build-deb/debian/changelog index 9630afe..103f90e 100644 --- a/build-deb/debian/changelog +++ b/build-deb/debian/changelog @@ -1,6 +1,6 @@ sanji-bundle-dhcpd (3.2.4) unstable; urgency=low - * fix: add restart on failure. + * fix: add Restart=always in dhcpd.service. -- JustinCP Tung Sun, 22 Apr 2018 09:02:32 +0800 diff --git a/dhcpd/__init__.py b/dhcpd/__init__.py index 9fc743f..0414c05 100644 --- a/dhcpd/__init__.py +++ b/dhcpd/__init__.py @@ -126,7 +126,7 @@ class DHCPD(Model): [Service] ExecStart = /usr/sbin/dhcpd -q -d --no-pid -cf /etc/dhcp/dhcpd-{}.conf {} -Restart = on-failure +Restart = always [Install] WantedBy = multi-user.target