[packages/dhcp] - Fix the pid file path in dhcp6.init. This fixes "/etc/init.d/dhcpd6 restart". - Release: 3

baggins baggins at pld-linux.org
Thu Apr 1 22:02:40 CEST 2021


commit 071ac6b61dedf115572076ad17bbbef53226b22c
Author: Paweł Zuzelski <pawelz at execve.pl>
Date:   Wed Mar 31 14:38:17 2021 +0000

    - Fix the pid file path in dhcp6.init. This fixes "/etc/init.d/dhcpd6 restart".
    - Release: 3

 dhcp.spec  | 2 +-
 dhcp6.init | 4 ++--
 2 files changed, 3 insertions(+), 3 deletions(-)
---
diff --git a/dhcp.spec b/dhcp.spec
index 3334b83..118bdc4 100644
--- a/dhcp.spec
+++ b/dhcp.spec
@@ -20,7 +20,7 @@ Summary(pl.UTF-8):	Serwer DHCP
 Summary(pt_BR.UTF-8):	Servidor DHCP (Protocolo de configuração dinâmica de hosts)
 Name:		dhcp
 Version:	%{ver}%{pverdot}
-Release:	2
+Release:	3
 Epoch:		4
 License:	MIT
 Group:		Networking/Daemons
diff --git a/dhcp6.init b/dhcp6.init
index e2a38ad..efbe991 100644
--- a/dhcp6.init
+++ b/dhcp6.init
@@ -36,7 +36,7 @@ check_device_up()
 # configtest itself
 configtest() {
 	local rc=0
-	/sbin/dhcpd -6 -t -T -cf /etc/dhcpd6.conf -pf /var/run/dhpcd6.pid || rc=$?
+	/sbin/dhcpd -6 -t -T -cf /etc/dhcpd6.conf -pf /var/run/dhcpd6.pid || rc=$?
 
 	# check if interfaces specified exist and have addresses
 	for i in $DHCPD_INTERFACES; do
@@ -94,7 +94,7 @@ start() {
 
 	checkconfig
 	msg_starting "DHCP IPv6 Server"
-	daemon /sbin/dhcpd -6 -q -cf /etc/dhcpd6.conf -pf /var/run/dhpcd6.pid $DHCPD_INTERFACES
+	daemon /sbin/dhcpd -6 -q -cf /etc/dhcpd6.conf -pf /var/run/dhcpd6.pid $DHCPD_INTERFACES
 	RETVAL=$?
 	[ $RETVAL -eq 0 ] && touch /var/lock/subsys/dhcpd6
 }
================================================================

---- gitweb:

http://git.pld-linux.org/gitweb.cgi/packages/dhcp.git/commitdiff/071ac6b61dedf115572076ad17bbbef53226b22c



More information about the pld-cvs-commit mailing list