summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAlin Năstac <mrness@gentoo.org>2005-04-25 20:25:25 +0000
committerAlin Năstac <mrness@gentoo.org>2005-04-25 20:25:25 +0000
commit8713ad5ae75670d089bab047b74186ae9e8eb9d4 (patch)
treee3327de9d358e05708c25de21e2cfa1767718eff /net-dns/totd/files
parentStable on sparc (diff)
downloadgentoo-2-8713ad5ae75670d089bab047b74186ae9e8eb9d4.tar.gz
gentoo-2-8713ad5ae75670d089bab047b74186ae9e8eb9d4.tar.bz2
gentoo-2-8713ad5ae75670d089bab047b74186ae9e8eb9d4.zip
net-misc/totd -> net-dns/totd; version bump
(Portage version: 2.0.51.19)
Diffstat (limited to 'net-dns/totd/files')
-rw-r--r--net-dns/totd/files/digest-totd-1.31
-rw-r--r--net-dns/totd/files/digest-totd-1.51
-rwxr-xr-xnet-dns/totd/files/totd39
3 files changed, 41 insertions, 0 deletions
diff --git a/net-dns/totd/files/digest-totd-1.3 b/net-dns/totd/files/digest-totd-1.3
new file mode 100644
index 000000000000..ceaf3a1b4092
--- /dev/null
+++ b/net-dns/totd/files/digest-totd-1.3
@@ -0,0 +1 @@
+MD5 bc6b85a5bddb72fc3fb20fa9fe50d3a0 totd-1.3.tar.gz 82133
diff --git a/net-dns/totd/files/digest-totd-1.5 b/net-dns/totd/files/digest-totd-1.5
new file mode 100644
index 000000000000..6fd513b3aaef
--- /dev/null
+++ b/net-dns/totd/files/digest-totd-1.5
@@ -0,0 +1 @@
+MD5 b7da63fc1ea1b2e2ce959732826bc146 totd-1.5.tar.gz 237043
diff --git a/net-dns/totd/files/totd b/net-dns/totd/files/totd
new file mode 100755
index 000000000000..3cc976388883
--- /dev/null
+++ b/net-dns/totd/files/totd
@@ -0,0 +1,39 @@
+#!/sbin/runscript
+# Copyright 1999-2004 Gentoo Foundation
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/totd/files/totd,v 1.1 2005/04/25 20:25:25 mrness Exp $
+
+depend() {
+ need net
+}
+
+checkconfig() {
+ if [ ! -f /etc/totd.conf ]
+ then
+ eerror "The config file /etc/totd.conf does not exist."
+ return 1
+ else
+ return 0
+ fi
+}
+
+start() {
+ checkconfig || return 1
+
+ ebegin "Starting totd"
+ start-stop-daemon --start --quiet --exec /usr/sbin/totd
+ eend $?
+}
+
+stop() {
+ local pid_file
+ pid_file="`grep ^pidfile /etc/totd.conf | cut -f2 -d ' '`"
+ ebegin "Stopping totd"
+ if [ -n "$pid_file" ]
+ then
+ start-stop-daemon --stop --quiet --pidfile $pid_file
+ else
+ start-stop-daemon --stop --quiet --pidfile /var/run/totd.pid
+ fi
+ eend $?
+}