From 0f558761aa2dee1017b4751e4017205e015a9560 Mon Sep 17 00:00:00 2001 From: V3n3RiX Date: Wed, 29 Jun 2022 12:04:12 +0100 Subject: gentoo resync : 29.12.2022 --- net-misc/ntp/files/ntpd.rc-r2 | 23 +++++++++++++++++++++++ 1 file changed, 23 insertions(+) create mode 100644 net-misc/ntp/files/ntpd.rc-r2 (limited to 'net-misc/ntp/files') diff --git a/net-misc/ntp/files/ntpd.rc-r2 b/net-misc/ntp/files/ntpd.rc-r2 new file mode 100644 index 000000000000..f4608f784615 --- /dev/null +++ b/net-misc/ntp/files/ntpd.rc-r2 @@ -0,0 +1,23 @@ +#!/sbin/openrc-run +# Copyright 1999-2021 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 + +description="ntpd - the network time protocol daemon" +pidfile="/var/run/ntpd.pid" +command="/usr/sbin/ntpd" +command_args="${NTPD_OPTS}" +command_args_background="-p ${pidfile}" +command_args_foreground="-n" + +depend() { + use net dns logger + after ntp-client +} + +start_pre() { + if [ ! -f /etc/ntp.conf ] ; then + eerror "Please create /etc/ntp.conf" + return 1 + fi + return 0 +} -- cgit v1.2.3