diff options
author | Daniel Ahlberg <aliz@gentoo.org> | 2002-11-04 13:01:39 +0000 |
---|---|---|
committer | Daniel Ahlberg <aliz@gentoo.org> | 2002-11-04 13:01:39 +0000 |
commit | 29f27b47f68711c264eb5b662da4b6b96d20991d (patch) | |
tree | 1ad0d1d4bfb54f2c2a0ad078f401fb582cf158f9 /net-analyzer/ippl/files | |
parent | Closes #7483. (diff) | |
download | gentoo-2-29f27b47f68711c264eb5b662da4b6b96d20991d.tar.gz gentoo-2-29f27b47f68711c264eb5b662da4b6b96d20991d.tar.bz2 gentoo-2-29f27b47f68711c264eb5b662da4b6b96d20991d.zip |
Initial import.
Diffstat (limited to 'net-analyzer/ippl/files')
-rw-r--r-- | net-analyzer/ippl/files/digest-ippl-1.4.14 | 1 | ||||
-rw-r--r-- | net-analyzer/ippl/files/ippl.rc | 39 |
2 files changed, 40 insertions, 0 deletions
diff --git a/net-analyzer/ippl/files/digest-ippl-1.4.14 b/net-analyzer/ippl/files/digest-ippl-1.4.14 new file mode 100644 index 000000000000..565816d81375 --- /dev/null +++ b/net-analyzer/ippl/files/digest-ippl-1.4.14 @@ -0,0 +1 @@ +MD5 9abd0f77e118c3ddf6805e2de73ed56a ippl-1.4.14.tar.gz 54030 diff --git a/net-analyzer/ippl/files/ippl.rc b/net-analyzer/ippl/files/ippl.rc new file mode 100644 index 000000000000..6c848f86aa6b --- /dev/null +++ b/net-analyzer/ippl/files/ippl.rc @@ -0,0 +1,39 @@ +#!/sbin/runscript +# Copyright 1999-2002 Gentoo Technologies, Inc. +# Distributed under the terms of the GNU General Public License, v2 or later +# $Header: /var/cvsroot/gentoo-x86/net-analyzer/ippl/files/ippl.rc,v 1.1 2002/11/04 13:01:39 aliz Exp $ + +depend() { + need net +} + +checkconfig() { + if [ ! -f /etc/ippl.conf ] + then + eerror "Please create /etc/ippl.conf" + return 1 + fi + return 0 +} + +start() { + checkconfig || return $? + ebegin "Starting ippl" + start-stop-daemon --start --quiet --pidfile /var/run/ippl.pid \ + --startas /usr/sbin/ippl + eend $? "Failed to start ippl" +} + +stop() { + ebegin "Stopping ippl" + start-stop-daemon --stop --quiet --pidfile /var/run/ippl.pid + eend $? "Failed to stop ippl" + + # clean stale pidfile + if [ -f /var/run/ippl.pid ] + then + rm -f /var/run/ippl.pid + fi +} + + |