1#!/bin/sh 2# 3# $NetBSD: ntpd,v 1.6 2002/03/22 04:33:59 thorpej Exp $
| 1#!/bin/sh 2# 3# $NetBSD: ntpd,v 1.6 2002/03/22 04:33:59 thorpej Exp $
|
4# $FreeBSD: head/etc/rc.d/ntpd 124616 2004-01-17 10:16:38Z mtm $
| 4# $FreeBSD: head/etc/rc.d/ntpd 124622 2004-01-17 10:59:43Z mtm $
|
5# 6 7# PROVIDE: ntpd 8# REQUIRE: DAEMON 9# BEFORE: LOGIN 10# KEYWORD: FreeBSD 11 12. /etc/rc.subr 13 14name=ntpd 15rcvar=`set_rcvar` 16command="/usr/sbin/${name}" 17pidfile="/var/run/${name}.pid" 18required_files="/etc/ntp.conf" 19
| 5# 6 7# PROVIDE: ntpd 8# REQUIRE: DAEMON 9# BEFORE: LOGIN 10# KEYWORD: FreeBSD 11 12. /etc/rc.subr 13 14name=ntpd 15rcvar=`set_rcvar` 16command="/usr/sbin/${name}" 17pidfile="/var/run/${name}.pid" 18required_files="/etc/ntp.conf" 19
|
20case ${OSTYPE} in 21NetBSD) 22 start_precmd="ntpd_precmd" 23 ;; 24esac 25
| |
26ntpd_precmd() 27{ 28 if [ -z "$ntpd_chrootdir" ]; then 29 return 0; 30 fi 31 32 # If running in a chroot cage, ensure that the appropriate files 33 # exist inside the cage, as well as helper symlinks into the cage
--- 20 unchanged lines hidden --- | 20ntpd_precmd() 21{ 22 if [ -z "$ntpd_chrootdir" ]; then 23 return 0; 24 fi 25 26 # If running in a chroot cage, ensure that the appropriate files 27 # exist inside the cage, as well as helper symlinks into the cage
--- 20 unchanged lines hidden --- |