diff options
author | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-11 13:16:23 +0000 |
---|---|---|
committer | Natanael Copa <ncopa@alpinelinux.org> | 2015-06-11 13:16:23 +0000 |
commit | 1d9fbe66c6f7e5f3517ea61e1e252a6fb94dfbb1 (patch) | |
tree | a38d4c320fe55d5ccb3f573f36f121f10c50f387 /main/tlsdate/tlsdate.initd | |
parent | 69ea0b70bc7a777fd1be47cfb34d8437d62b1efe (diff) | |
download | aports-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.initd | 17 |
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" +} |