|
|
|
| |||||||||
![]() |
|
|
«
Previous Thread
|
Next Thread
»
|
Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
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
|
|||
|
|||
|
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.. ![]() |
|
#2
|
|||
|
|||
|
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 |
|
#3
|
|||
|
|||
|
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? |
![]() |
| Viewing: Dev Shed Forums > Web Site Management > Scripts > start-stop-daemon: command not found |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|
|
|