[packages/tftp-hpa] - added -P /var/run/tftpd.pid to the init script. - rel 3

witekfl witekfl at pld-linux.org
Wed Jul 11 11:09:07 CEST 2012


commit ce9dbb0698e03d7287f21c72500b40bc8d926418
Author: witekfl <witekfl at poczta.onet.pl>
Date:   Wed Jul 11 11:05:56 2012 +0200

    - added -P /var/run/tftpd.pid to the init script.
    - rel 3
    
    Systemd reported tfpd-hpa as failed, because it cannot find the pidfile.

 tftp-hpa.spec  | 2 +-
 tftpd-hpa.init | 2 +-
 2 files changed, 2 insertions(+), 2 deletions(-)
---
diff --git a/tftp-hpa.spec b/tftp-hpa.spec
index 03a2b06..3f00c6d 100644
--- a/tftp-hpa.spec
+++ b/tftp-hpa.spec
@@ -5,7 +5,7 @@ Summary(pl.UTF-8):	Klient TFTP (Trivial File Transfer Protocol)
 Summary(tr.UTF-8):	İlkel dosya aktarım protokolu (TFTP) için sunucu ve istemci
 Name:		tftp-hpa
 Version:	5.2
-Release:	2
+Release:	3
 License:	BSD
 Group:		Applications/Networking
 Source0:	ftp://ftp.kernel.org/pub/software/network/tftp/tftp-hpa/%{name}-%{version}.tar.xz
diff --git a/tftpd-hpa.init b/tftpd-hpa.init
index da1dac8..8700421 100644
--- a/tftpd-hpa.init
+++ b/tftpd-hpa.init
@@ -31,7 +31,7 @@ fi
 start() {
 	# Check if the service is already running?
 	if [ ! -f /var/lock/subsys/tftpd ]; then
-		TFTPD_OPTS="-l -u tftp"
+		TFTPD_OPTS="-l -u tftp -P /var/run/tftpd.pid"
 		is_yes "$LISTEN_IPV4" && TFTPD_OPTS="$TFTPD_OPTS -4"
 		is_yes "$LISTEN_IPV6" && TFTPD_OPTS="$TFTPD_OPTS -6"
 		[ -n "$ADDRESS" ] &&  TFTPD_OPTS="$TFTPD_OPTS -a $ADDRESS"


More information about the pld-cvs-commit mailing list