polynomial-c    14/12/22 08:42:22

  Added:                ntpd.rc-r1
  Removed:              ntp-4.2.4_p7-CVE-2009-3563.patch sntp.service
  Log:
  Added rewritten init script for ntpd. Removed old versions
  
  (Portage version: 2.2.15/cvs/Linux x86_64, signed Manifest commit with key 
0x981CA6FC)

Revision  Changes    Path
1.1                  net-misc/ntp/files/ntpd.rc-r1

file : 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/files/ntpd.rc-r1?rev=1.1&view=markup
plain: 
http://sources.gentoo.org/viewvc.cgi/gentoo-x86/net-misc/ntp/files/ntpd.rc-r1?rev=1.1&content-type=text/plain

Index: ntpd.rc-r1
===================================================================
#!/sbin/runscript
# Copyright 1999-2014 Gentoo Foundation
# Distributed under the terms of the GNU General Public License v2
# $Header: /var/cvsroot/gentoo-x86/net-misc/ntp/files/ntpd.rc-r1,v 1.1 
2014/12/22 08:42:22 polynomial-c Exp $

description="ntpd - the network time protocol daemon"
pidfile="/var/run/ntpd.pid"
command="/usr/sbin/ntpd"
command_args="-p ${pidfile} ${NTPD_OPTS}"
start_stop_daemon_args="--pidfile ${pidfile}"

depend() {
        use net dns logger
        after ntp-client
}

start_pre() {
        if [ ! -f /etc/ntp.conf ] ; then
                eerror "Please create /etc/ntp.conf"
                eerror "Sample conf: /usr/share/ntp/ntp.conf"
                return 1
        fi
        return 0
}




Reply via email to