summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMike Frysinger <vapier@gentoo.org>2004-03-06 03:09:27 +0000
committerMike Frysinger <vapier@gentoo.org>2004-03-06 03:09:27 +0000
commit943d59d481525c6f42190af11e3e5a133087bcbf (patch)
tree64632ede36686636f1177fb32f18562ecb6949f2 /net-dns/posadis/files/posadis-init
parentgpl2, not gpl2 or later (diff)
downloadgentoo-2-943d59d481525c6f42190af11e3e5a133087bcbf.tar.gz
gentoo-2-943d59d481525c6f42190af11e3e5a133087bcbf.tar.bz2
gentoo-2-943d59d481525c6f42190af11e3e5a133087bcbf.zip
we license under gpl2, not gpl2 or later
Diffstat (limited to 'net-dns/posadis/files/posadis-init')
-rw-r--r--net-dns/posadis/files/posadis-init32
1 files changed, 16 insertions, 16 deletions
diff --git a/net-dns/posadis/files/posadis-init b/net-dns/posadis/files/posadis-init
index c09e1973197b..57748b09e4ab 100644
--- a/net-dns/posadis/files/posadis-init
+++ b/net-dns/posadis/files/posadis-init
@@ -1,30 +1,30 @@
#!/sbin/runscript
# Copyright 1999-2004 Gentoo Technologies, Inc.
-# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header $
+# Distributed under the terms of the GNU General Public License v2
+# $Header: /var/cvsroot/gentoo-x86/net-dns/posadis/files/posadis-init,v 1.2 2004/03/06 03:09:27 vapier Exp $
depend() {
- need net
+ need net
}
checkconfig() {
- if [ ! -e /etc/posadisrc ] ; then
- eerror "You need an /etc/posadisrc to run Posadis"
- eerror "For more help, do man posadisrc."
- return 1
- fi
+ if [ ! -e /etc/posadisrc ] ; then
+ eerror "You need an /etc/posadisrc to run Posadis"
+ eerror "For more help, do man posadisrc."
+ return 1
+ fi
+ return 0
}
start() {
- checkconfig || return 1
- ebegin "Starting Posadis"
- start-stop-daemon --quiet --start -p /var/posadis/pidfile --exec /usr/bin/posadis -- -p /var/posadis/pidfile -f
- eend $?
+ checkconfig || return 1
+ ebegin "Starting Posadis"
+ start-stop-daemon --quiet --start -p /var/posadis/pidfile --exec /usr/bin/posadis -- -p /var/posadis/pidfile -f
+ eend $?
}
stop() {
- ebegin "Stopping Posadis"
- start-stop-daemon --quiet --stop --name posadis -p /var/posadis/pidfile --exec /usr/bin/posadis
- eend $?
+ ebegin "Stopping Posadis"
+ start-stop-daemon --quiet --stop --name posadis -p /var/posadis/pidfile --exec /usr/bin/posadis
+ eend $?
}
-