diff options
author | 2003-10-27 05:50:53 +0000 | |
---|---|---|
committer | 2003-10-27 05:50:53 +0000 | |
commit | 9815cec74a983b79a807551adb1df2071d677883 (patch) | |
tree | 76deb841c516b4bc25bbff259a1897559ccff94f /net-analyzer/iplog/files | |
parent | add my own startup script for iplog (diff) | |
download | gentoo-2-9815cec74a983b79a807551adb1df2071d677883.tar.gz gentoo-2-9815cec74a983b79a807551adb1df2071d677883.tar.bz2 gentoo-2-9815cec74a983b79a807551adb1df2071d677883.zip |
add my own startup script for iplog
Diffstat (limited to 'net-analyzer/iplog/files')
-rw-r--r-- | net-analyzer/iplog/files/digest-iplog-2.2.3-r2 | 1 | ||||
-rw-r--r-- | net-analyzer/iplog/files/iplog.rc6 | 37 |
2 files changed, 38 insertions, 0 deletions
diff --git a/net-analyzer/iplog/files/digest-iplog-2.2.3-r2 b/net-analyzer/iplog/files/digest-iplog-2.2.3-r2 new file mode 100644 index 000000000000..15654566682b --- /dev/null +++ b/net-analyzer/iplog/files/digest-iplog-2.2.3-r2 @@ -0,0 +1 @@ +MD5 de98dd64018ab10ebe36e481cf00b7db iplog-2.2.3.tar.gz 133639 diff --git a/net-analyzer/iplog/files/iplog.rc6 b/net-analyzer/iplog/files/iplog.rc6 new file mode 100644 index 000000000000..e8b816237815 --- /dev/null +++ b/net-analyzer/iplog/files/iplog.rc6 @@ -0,0 +1,37 @@ +#!/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 $ + +depend() { + need net +} + +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 +} + +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} + eend $? "Failed to stop iplog!" +} + +checkconfig() { + [ -f /etc/iplog.conf ] || return 1 + return 0 +} |