add Restart in dhcpd.service

(cherry picked from commit f3cb67c33fcf73a9a81ebb72ddf72556152f3dba)
This commit is contained in:
renmingshuai 2023-05-27 10:25:36 +08:00 committed by openeuler-sync-bot
parent 42115e089b
commit ed1e4bcaae
2 changed files with 9 additions and 2 deletions

View File

@ -3,7 +3,7 @@
Name: dhcp Name: dhcp
Version: 4.4.3 Version: 4.4.3
Release: 1 Release: 2
Summary: Dynamic host configuration protocol software Summary: Dynamic host configuration protocol software
#Please don't change the epoch on this package #Please don't change the epoch on this package
Epoch: 12 Epoch: 12
@ -306,9 +306,15 @@ exit 0
%{_mandir}/man3/omapi.3.gz %{_mandir}/man3/omapi.3.gz
%changelog %changelog
* Sat May 27 2023 renmingshuai <renmingshuai@huawei.com> - 12:4.4.3-2
- Type:bugfix
- ID:NA
- SUG:restart
- DESC:add Restart in dhcpd.service
* Tue Nov 1 2022 renmingshuai <renmingshuai@huawei.com> - 12:4.4.3-1 * Tue Nov 1 2022 renmingshuai <renmingshuai@huawei.com> - 12:4.4.3-1
- Type:requirement - Type:requirement
- ID: - ID:NA
- SUG:restart - SUG:restart
- DESC:update to 4.4.3 - DESC:update to 4.4.3

View File

@ -10,6 +10,7 @@ Type=notify
EnvironmentFile=-/etc/sysconfig/dhcpd EnvironmentFile=-/etc/sysconfig/dhcpd
ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid $DHCPDARGS ExecStart=/usr/sbin/dhcpd -f -cf /etc/dhcp/dhcpd.conf -user dhcpd -group dhcpd --no-pid $DHCPDARGS
StandardError=null StandardError=null
Restart=on-failure
[Install] [Install]
WantedBy=multi-user.target WantedBy=multi-user.target