aboutsummaryrefslogtreecommitdiffstats
path: root/main/tlsdate/tlsdate.initd
diff options
context:
space:
mode:
authorNatanael Copa <ncopa@alpinelinux.org>2015-06-11 13:16:23 +0000
committerNatanael Copa <ncopa@alpinelinux.org>2015-06-11 13:16:23 +0000
commit1d9fbe66c6f7e5f3517ea61e1e252a6fb94dfbb1 (patch)
treea38d4c320fe55d5ccb3f573f36f121f10c50f387 /main/tlsdate/tlsdate.initd
parent69ea0b70bc7a777fd1be47cfb34d8437d62b1efe (diff)
downloadaports-1d9fbe66c6f7e5f3517ea61e1e252a6fb94dfbb1.tar.bz2
aports-1d9fbe66c6f7e5f3517ea61e1e252a6fb94dfbb1.tar.xz
main/tlsdate: add init.d scripts
Diffstat (limited to 'main/tlsdate/tlsdate.initd')
-rw-r--r--main/tlsdate/tlsdate.initd17
1 files changed, 17 insertions, 0 deletions
diff --git a/main/tlsdate/tlsdate.initd b/main/tlsdate/tlsdate.initd
new file mode 100644
index 0000000000..9f4b0c2af8
--- /dev/null
+++ b/main/tlsdate/tlsdate.initd
@@ -0,0 +1,17 @@
+#!/sbin/openrc-run
+# Copyright 1999-2012 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/files/tlsdate.rc,v 1.1 2012/12/11 01:49:23 vapier Exp $
+
+description="set time once when started"
+
+depend() {
+ use net
+}
+
+start() {
+ : ${TLSDATE_CMD:=tlsdate}
+ ebegin "Setting clock via tlsdate '${TLSDATE_CMD}'"
+ "${TLSDATE_CMD}" ${TLSDATE_OPTS}
+ eend $? "Failed to set clock"
+}