Scripts
 
Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
User Name:
Password:
Remember me
Go Back   Dev Shed ForumsWeb Site ManagementScripts

Reply
Add This Thread To:
  Del.icio.us   Digg   Google   Spurl   Blink   Furl   Simpy   Y! MyWeb 
Thread Tools Search this Thread Rate Thread Display Modes
 
Unread Dev Shed Forums Sponsor:
Generate data entry and reporting .NET Web apps in minutes, straight from your database. Read our FREE whitepaper “Build Web 2.0 Applications Without Hand-Coding” Download now!
  #1  
Old February 10th, 2004, 09:58 AM
zai zai is offline
Junior Member
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Dec 2003
Location: malaysia
Posts: 1 zai User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: < 1 sec
Reputation Power: 0
start-stop-daemon: command not found

hello every body..
this is a script i that i got from web...

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

after i configure all.. and when i run this script i got an error :

Starting iptables logfile analyzer: /etc/init.d/iptablelog: line 22: start-stop-daemon: command not found

pls help me... what should i do..

Reply With Quote
  #2  
Old May 11th, 2005, 06:46 PM
fh4pres fh4pres is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: May 2005
Posts: 0 fh4pres User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 19 m 42 sec
Reputation Power: 0
Same problem

I'm having the same issue, meaning I get the same error message on a CentOS 3.4 install. I've searched high & low for an answer. No luck yet!

Any help would be highly appreciated. Thanks in advance!

- Faraaz

Reply With Quote
  #3  
Old July 18th, 2005, 04:34 AM
damonsmith damonsmith is offline
Registered User
Dev Shed Newbie (0 - 499 posts)
 
Join Date: Jul 2005
Posts: 1 damonsmith User rank is Just a Lowly Private (1 - 20 Reputation Level) 
Time spent in forums: 7 m 16 sec
Reputation Power: 0
The error clearly says
line 22: start-stop-daemon: command not found
This means that you don't have start-stop-daemon.

The reason is that start-stop-daemon is a tool used in debian linux, gentoo linux, and others to start programs as backgrounded daemons. The tool doesn't exist in CentOS.

You can either:
a) find or compile yourself a version of start-stop-daemon (a very handy tool)
b) modify the script so that it makes a daemon of the log analyzer some other way (see the daemon function perhaps)
c) get a version for your distro.
z) get a proper distro. No seriously, have you considered ubuntu?

Reply With Quote
Reply

Viewing: Dev Shed ForumsWeb Site ManagementScripts > start-stop-daemon: command not found


Thread Tools  Search this Thread 
Search this Thread:

Advanced Search
Display Modes  Rate This Thread 
Rate This Thread:


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

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
View Your Warnings | New Posts | Latest News | Latest Threads | Shoutbox
Forum Jump


Forums: » Register « |  User CP |  Games |  Calendar |  Members |  FAQs |  Sitemap |  Support | 
  
 





© 2003-2008 by Developer Shed. All rights reserved. DS Cluster 1 hosted by Hostway