aboutsummaryrefslogtreecommitdiffstats
path: root/main/tlsdate/tlsdated.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/tlsdated.initd
parent69ea0b70bc7a777fd1be47cfb34d8437d62b1efe (diff)
downloadaports-1d9fbe66c6f7e5f3517ea61e1e252a6fb94dfbb1.tar.bz2
aports-1d9fbe66c6f7e5f3517ea61e1e252a6fb94dfbb1.tar.xz
main/tlsdate: add init.d scripts
Diffstat (limited to 'main/tlsdate/tlsdated.initd')
-rw-r--r--main/tlsdate/tlsdated.initd19
1 files changed, 19 insertions, 0 deletions
diff --git a/main/tlsdate/tlsdated.initd b/main/tlsdate/tlsdated.initd
new file mode 100644
index 0000000000..32936875ac
--- /dev/null
+++ b/main/tlsdate/tlsdated.initd
@@ -0,0 +1,19 @@
+#!/sbin/openrc-run
+# Copyright 1999-2014 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-misc/tlsdate/files/tlsdated.rc,v 1.2 2014/11/06 16:00:28 vapier Exp $
+
+description="start a daemon to continuously set time via a helper"
+
+command="tlsdated"
+command_args="${TLSDATED_OPTS} -- ${TLSDATED_CMD}"
+command_background="true"
+pidfile="/var/run/${SVCNAME}.pid"
+
+depend() {
+ use net
+}
+
+start_pre() {
+ checkpath -d -m 0700 -o tlsdate:tlsdate "${TLSDATED_CACHE_DIR}"
+}