Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/etc/rc.d Make sure that ntpd creates a pid file for the rc m...
details: https://anonhg.NetBSD.org/src/rev/f0f6744141d2
branches: trunk
changeset: 783082:f0f6744141d2
user: prlw1 <prlw1%NetBSD.org@localhost>
date: Tue Dec 04 16:38:40 2012 +0000
description:
Make sure that ntpd creates a pid file for the rc machinery to work.
http://mail-index.netbsd.org/current-users/2012/11/19/msg021518.html
diffstat:
etc/rc.d/ntpd | 3 ++-
etc/rc.d/ppp | 5 ++++-
2 files changed, 6 insertions(+), 2 deletions(-)
diffs (47 lines):
diff -r 30e4ac86fd72 -r f0f6744141d2 etc/rc.d/ntpd
--- a/etc/rc.d/ntpd Tue Dec 04 15:10:04 2012 +0000
+++ b/etc/rc.d/ntpd Tue Dec 04 16:38:40 2012 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ntpd,v 1.13 2004/08/13 18:08:03 mycroft Exp $
+# $NetBSD: ntpd,v 1.14 2012/12/04 16:38:40 prlw1 Exp $
#
# PROVIDE: ntpd
@@ -19,6 +19,7 @@
ntpd_precmd()
{
+ rc_flags="-p ${pidfile} $rc_flags"
if [ -z "$ntpd_chrootdir" ]; then
return 0;
fi
diff -r 30e4ac86fd72 -r f0f6744141d2 etc/rc.d/ppp
--- a/etc/rc.d/ppp Tue Dec 04 15:10:04 2012 +0000
+++ b/etc/rc.d/ppp Tue Dec 04 16:38:40 2012 +0000
@@ -1,6 +1,6 @@
#!/bin/sh
#
-# $NetBSD: ppp,v 1.8 2004/10/11 15:00:51 christos Exp $
+# $NetBSD: ppp,v 1.9 2012/12/04 16:38:40 prlw1 Exp $
#
# PROVIDE: ppp
@@ -14,6 +14,7 @@
$_rc_subr_loaded . /etc/rc.subr
name="ppp"
+rcvar=$name
start_cmd="ppp_start"
stop_cmd="ppp_stop"
sig_stop="-INT"
@@ -40,6 +41,8 @@
fi
done
echo "."
+ else
+ warn "\${ppp_peers} is not set - pppd was not started."
fi
}
Home |
Main Index |
Thread Index |
Old Index