diff options
author | Tobias Scherbaum <dertobi123@gentoo.org> | 2006-04-09 05:50:24 +0000 |
---|---|---|
committer | Tobias Scherbaum <dertobi123@gentoo.org> | 2006-04-09 05:50:24 +0000 |
commit | 4dc73ebdf3a6c96cea638967f187c67c9e55a859 (patch) | |
tree | 3f3e4484695e6b061924344f5293116b71634e2b /net-misc/htpdate/files | |
parent | Update ChangeLog to reflect the withdrawal of 2.1_pre8. See bug #128946. (diff) | |
download | gentoo-2-4dc73ebdf3a6c96cea638967f187c67c9e55a859.tar.gz gentoo-2-4dc73ebdf3a6c96cea638967f187c67c9e55a859.tar.bz2 gentoo-2-4dc73ebdf3a6c96cea638967f187c67c9e55a859.zip |
Added Initscript to run htpdate as a daemon
(Portage version: 2.1_pre7-r4)
Diffstat (limited to 'net-misc/htpdate/files')
-rw-r--r-- | net-misc/htpdate/files/digest-htpdate-0.9.1-r1 | 3 | ||||
-rw-r--r-- | net-misc/htpdate/files/htpdate.conf | 12 | ||||
-rw-r--r-- | net-misc/htpdate/files/htpdate.init | 31 |
3 files changed, 46 insertions, 0 deletions
diff --git a/net-misc/htpdate/files/digest-htpdate-0.9.1-r1 b/net-misc/htpdate/files/digest-htpdate-0.9.1-r1 new file mode 100644 index 000000000000..66d8f411aef4 --- /dev/null +++ b/net-misc/htpdate/files/digest-htpdate-0.9.1-r1 @@ -0,0 +1,3 @@ +MD5 26f9792ded592e2dd79a6c26d436a4ed htpdate-0.9.1.tar.gz 13486 +RMD160 74e977d55346b766e14e73a3e1216d1fc2a275da htpdate-0.9.1.tar.gz 13486 +SHA256 7a87514f7c053789a06476668ff1d6c284098a901887812912f6347bb12ec9af htpdate-0.9.1.tar.gz 13486 diff --git a/net-misc/htpdate/files/htpdate.conf b/net-misc/htpdate/files/htpdate.conf new file mode 100644 index 000000000000..719c3f2f1a7c --- /dev/null +++ b/net-misc/htpdate/files/htpdate.conf @@ -0,0 +1,12 @@ +# config file for /etc/init.d/htpdate + +# Add at least one http server to use: +#SERVERS="<servername>" + +# If you are using a proxy server to connect to the +# internet comment out the following line and insert the +# address and port of your proxy server. +#PROXY="-P <proxy>:<port>" + +# Set additional options, see 'man htpdate' for refernce +HTPDATE_OPTS="-s" diff --git a/net-misc/htpdate/files/htpdate.init b/net-misc/htpdate/files/htpdate.init new file mode 100644 index 000000000000..b40e83596b2e --- /dev/null +++ b/net-misc/htpdate/files/htpdate.init @@ -0,0 +1,31 @@ +#!/sbin/runscript +# Copyright 1999-2006 Gentoo Foundation +# Distributed under the terms of the GNU General Public License v2 +# $Header: /var/cvsroot/gentoo-x86/net-misc/htpdate/files/htpdate.init,v 1.1 2006/04/09 05:50:24 dertobi123 Exp $ + +depend() { + need net + use dns logger +} + +checkconfig() { + if [ ! -n "${SERVERS}" ] ; then + eerror "You need to set at least one http server to use in /etc/conf.d/htpdate" + return 1 + fi +} + +start() { + checkconfig || return 1 + ebegin "Starting htpdate" + start-stop-daemon --quiet --start --pidfile /var/run/htpdate.pid --exec /usr/sbin/htpdate \ + -- -D ${HTPDATE_OPTS} ${PROXY} ${SERVERS} + eend $? +} + +stop() { + ebegin "Stopping htpdate" + start-stop-daemon --stop --quiet --pidfile /var/run/htpdate.pid + rm -f /var/run/htpdate.pid + eend $? +} |