LinuxQuestions.org
Download your favorite Linux distribution at LQ ISO.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
LinkBack Search this Thread
Old 09-19-2009, 01:22 AM   #1
Ammad
Member
 
Registered: Apr 2004
Distribution: redhat 9.0, fc4, redhat as 4
Posts: 517

Rep: Reputation: 31
iptables log analyzer


HI,

i have installed iptables log analyzer. but when i start, it reports error.

Code:
[root@linux log]#/etc/init.d/iptablelog start
Starting iptables logfile analyzer: /etc/init.d/iptablelog: line 22: start-stop-daemon: command not found
there is no start-stop-daemon command in linux on line 22, may be you can help me on this.


Code:
!/bin/sh
#
# System V init script for iptables logfile analyzer
#
# (c) Thomas Vallaitis <bonewood@gmx.net>
#
# pid isn't saved by iptables logfile analyzer (afaik)
# we have two processes -> more difficult
#

PATH="/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin"
LONGNAME="iptables logfile analyzer"
NAME="iptablelog"
DAEMON='/usr/local/bin/feed_db.pl'

set -e

# Main Loop
case $1 in
start)
      echo -n "Starting $LONGNAME: ";
      start-stop-daemon --start --quiet --pidfile /var/run/$NAME.pid --exec $DAEMON -- --background
      echo $NAME;
        ;;
stop)
      echo -n "Stopping $LONGNAME: "
      start-stop-daemon --stop --quiet --pidfile /var/run/$NAME.pid || true
      rm -f /var/run/$NAME.pid
      echo $NAME
        ;;
*)
        N=/etc/init.d/$NAME
        # echo "Usage: $N {start|stop|restart|reload|force-reload}" >&2
        echo "Usage: $N {start|stop}" >&2
        exit 1
        ;;
esac

exit 0

# EOF
 
Old 09-19-2009, 04:43 AM   #2
carltm
Member
 
Registered: Jan 2007
Location: Canton, MI
Distribution: CentOS, SuSE, Red Hat, Debian, etc.
Posts: 697

Rep: Reputation: 93
start-stop-daemon seems to be a SuSE command. Since you are familiar
with Red Hat based distributions, you might know about the service
command which has similar functionality.

You could rewrite the script to replace start-stop-daemon with service.
 
Old 09-19-2009, 04:51 AM   #3
vishesh
Member
 
Registered: Feb 2008
Distribution: Fedora,RHEL,Ubuntu
Posts: 647

Rep: Reputation: 66
I think start-stop-daemons should get replaced by 'daemon $NAME '

Thnks
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
Iptables Log Analyzer no logs in mysql db! abcampa Linux - Software 1 12-11-2008 02:53 AM
iptables log analyzer? sauce Linux - Software 1 12-13-2005 03:39 AM
IPTables Log Analyzer ddaas Linux - Security 4 06-26-2005 07:21 AM
IPtables Log Analyzer from http://www.gege.org/iptables/ brainlego Linux - Software 0 08-11-2003 06:08 AM
Log analyzer? subnet_rx Linux - Security 2 11-06-2001 06:02 AM


All times are GMT -5. The time now is 08:09 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration