Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/etc/rc.d Take account of the fact that "ntpd" writes it's pi...



details:   https://anonhg.NetBSD.org/src/rev/e5a2aed37461
branches:  trunk
changeset: 565178:e5a2aed37461
user:      fredb <fredb%NetBSD.org@localhost>
date:      Wed Mar 31 17:52:06 2004 +0000

description:
Take account of the fact that "ntpd" writes it's pidfile after chroot().
Closes PR bin/24653.

diffstat:

 etc/rc.d/ntpd |  4 ++--
 1 files changed, 2 insertions(+), 2 deletions(-)

diffs (20 lines):

diff -r 41258d0dfdf0 -r e5a2aed37461 etc/rc.d/ntpd
--- a/etc/rc.d/ntpd     Wed Mar 31 16:42:19 2004 +0000
+++ b/etc/rc.d/ntpd     Wed Mar 31 17:52:06 2004 +0000
@@ -1,6 +1,6 @@
 #!/bin/sh
 #
-# $NetBSD: ntpd,v 1.10 2002/07/02 14:47:22 itohy Exp $
+# $NetBSD: ntpd,v 1.11 2004/03/31 17:52:06 fredb Exp $
 #
 
 # PROVIDE: ntpd
@@ -13,7 +13,7 @@
 name="ntpd"
 rcvar=$name
 command="/usr/sbin/${name}"
-pidfile="/var/run/${name}.pid"
+pidfile="${ntpd_chrootdir}/var/run/${name}.pid"
 start_precmd="ntpd_precmd"
 required_files="/etc/ntp.conf"
 



Home | Main Index | Thread Index | Old Index