summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMichael Boman <mboman@gentoo.org>2004-02-28 04:58:52 +0000
committerMichael Boman <mboman@gentoo.org>2004-02-28 04:58:52 +0000
commit54d42e61c527263d91c3789966e09687897b0c42 (patch)
treedcac17f89b913b8a0290047d026aed269a97e5a3 /net-analyzer/iplog/files
parentver bump (diff)
downloadhistorical-54d42e61c527263d91c3789966e09687897b0c42.tar.gz
historical-54d42e61c527263d91c3789966e09687897b0c42.tar.bz2
historical-54d42e61c527263d91c3789966e09687897b0c42.zip
Marked stable on x86. Closes 42998. Re-indented the init.d script. Changed some internal stuff in the ebuild so it's a bit cleaner.
Diffstat (limited to 'net-analyzer/iplog/files')
-rw-r--r--net-analyzer/iplog/files/iplog.rc630
1 files changed, 15 insertions, 15 deletions
diff --git a/net-analyzer/iplog/files/iplog.rc6 b/net-analyzer/iplog/files/iplog.rc6
index e8b816237815..b87b09ddafe5 100644
--- a/net-analyzer/iplog/files/iplog.rc6
+++ b/net-analyzer/iplog/files/iplog.rc6
@@ -1,7 +1,7 @@
#!/sbin/runscript
# Copyright 1999-2003 Gentoo Technologies, Inc.
# Distributed under the terms of the GNU General Public License, v2 or later
-# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iplog/files/iplog.rc6,v 1.1 2003/10/27 05:50:50 robbat2 Exp $
+# $Header: /var/cvsroot/gentoo-x86/net-analyzer/iplog/files/iplog.rc6,v 1.2 2004/02/28 04:58:52 mboman Exp $
depend() {
need net
@@ -11,27 +11,27 @@ pidfile=/var/run/iplog.pid
start() {
ebegin "Starting iplog"
- checkconfig
- rc=$?
- if [ $rc -eq 0 ]; then
- start-stop-daemon --start --quiet --startas /usr/sbin/iplog \
- --pidfile=${pidfile} --name=iplog
- rc=$?
- eend $rc "Failed to start iplog $rc"
- else
- eend $rc "/etc/iplog.conf does not exist!"
- fi
+ checkconfig
+ rc=$?
+ if [ $rc -eq 0 ]; then
+ start-stop-daemon --start --quiet --startas /usr/sbin/iplog \
+ --pidfile=${pidfile} --name=iplog
+ rc=$?
+ eend $rc "Failed to start iplog $rc"
+ else
+ eend $rc "/etc/iplog.conf does not exist!"
+ fi
}
stop() {
ebegin "Stopping iplog"
start-stop-daemon --stop --retry=5 --quiet --pidfile=${pidfile} --name=iplog
- # due to a bug in the program, it doesn't properly remove it's pidfile sometimes
- rm -f ${pidfile}
+ # due to a bug in the program, it doesn't properly remove it's pidfile sometimes
+ rm -f ${pidfile}
eend $? "Failed to stop iplog!"
}
checkconfig() {
- [ -f /etc/iplog.conf ] || return 1
- return 0
+ [ -f /etc/iplog.conf ] || return 1
+ return 0
}