summaryrefslogtreecommitdiff
path: root/net-misc/openrdate/files/openrdate-initd
diff options
context:
space:
mode:
Diffstat (limited to 'net-misc/openrdate/files/openrdate-initd')
-rw-r--r--net-misc/openrdate/files/openrdate-initd26
1 files changed, 0 insertions, 26 deletions
diff --git a/net-misc/openrdate/files/openrdate-initd b/net-misc/openrdate/files/openrdate-initd
deleted file mode 100644
index 92210cce3c89..000000000000
--- a/net-misc/openrdate/files/openrdate-initd
+++ /dev/null
@@ -1,26 +0,0 @@
-#!/sbin/openrc-run
-# Copyright 1999-2005 Gentoo Foundation
-# Distributed under the terms of the GNU General Public License v2
-
-depend() {
- before cron
- need net
- use dns
-}
-
-checkconfig() {
- if [ -z "${RDATE_SERVER}" ] ; then
- eerror "Please edit /etc/conf.d/openrdate"
- eerror "I need to know what server to use!"
- return 1
- fi
- return 0
-}
-
-start() {
- checkconfig || return $?
-
- ebegin "Setting clock via openrdate"
- /usr/bin/openrdate -s ${OPENRDATE_OPTS} ${RDATE_SERVER} > /dev/null
- eend $? "Failed to set clock via openrdate"
-}