pkgsrc-Bugs archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
Re: pkg/42276
The following reply was made to PR pkg/42276; it has been noted by GNATS.
From: Emil Skoeldberg <esg%SDF.LONESTAR.ORG@localhost>
To: gnats-bugs%netbsd.org@localhost
Cc:
Subject: Re: pkg/42276
Date: Tue, 10 May 2011 16:11:42 +0000
Not only does ntp4 not pick up the correct configuration file, but the
pidfile is not found either:
matstaff04 ntp4 $ sudo /usr/pkg/etc/rc.d/ntpd status
ntpd is not running.
matstaff04 ntp4 $ sudo /usr/pkg/etc/rc.d/ntpd start
Starting ntpd.
matstaff04 ntp4 $ sudo /usr/pkg/etc/rc.d/ntpd status
ntpd is not running.
I propose the following patch:
matstaff04 ntp4 $ sudo cvs diff -u
Index: files/ntpd.sh
===================================================================
RCS file: /cvsroot/pkgsrc/net/ntp4/files/ntpd.sh,v
retrieving revision 1.2
diff -u -r1.2 ntpd.sh
--- files/ntpd.sh 28 Mar 2004 06:35:03 -0000 1.2
+++ files/ntpd.sh 10 May 2011 16:03:04 -0000
@@ -13,9 +13,11 @@
name="ntpd"
rcvar=$name
command="@PREFIX@/bin/${name}"
+conf_file="@PKG_SYSCONFDIR@/ntp.conf"
pidfile="/var/run/${name}.pid"
+command_args="-c ${conf_file} -p ${pidfile}"
start_precmd="ntpd_precmd"
-required_files="@PKG_SYSCONFDIR@/ntp.conf"
+required_files="${conf_file}"
ntpd_precmd()
{
--
esg%sdf.lonestar.org@localhost
SDF Public Access UNIX System - http://sdf.lonestar.org
Home |
Main Index |
Thread Index |
Old Index