From ed1e4bcaae27d3dad8f7f3fe784887383e87e41d Mon Sep 17 00:00:00 2001 From: renmingshuai Date: Sat, 27 May 2023 10:25:36 +0800 Subject: [PATCH] add Restart in dhcpd.service (cherry picked from commit f3cb67c33fcf73a9a81ebb72ddf72556152f3dba) --- dhcp.spec | 10 ++++++++-- dhcpd.service | 1 + 2 files changed, 9 insertions(+), 2 deletions(-) diff --git a/dhcp.spec b/dhcp.spec index 6aae00a..8c43806 100644 --- a/dhcp.spec +++ b/dhcp.spec @@ -3,7 +3,7 @@ Name: dhcp Version: 4.4.3 -Release: 1 +Release: 2 Summary: Dynamic host configuration protocol software #Please don't change the epoch on this package Epoch: 12 @@ -306,9 +306,15 @@ exit 0 %{_mandir}/man3/omapi.3.gz %changelog +* Sat May 27 2023 renmingshuai - 12:4.4.3-2 +- Type:bugfix +- ID:NA +- SUG:restart +- DESC:add Restart in dhcpd.service + * Tue Nov 1 2022 renmingshuai - 12:4.4.3-1 - Type:requirement -- ID: +- ID:NA - SUG:restart - DESC:update to 4.4.3 diff --git a/dhcpd.service b/dhcpd.service index 7363d7d..f4d2190 100644 --- a/dhcpd.service +++ b/dhcpd.service @@ -10,6 +10,7 @@ Type=notify EnvironmentFile=-/etc/sysconfig/dhcpd ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid $DHCPDARGS StandardError=null +Restart=on-failure [Install] WantedBy=multi-user.target -- Gitee