I have a typical problem.
I was working on server configuration for rails using nginx and passenger. how ever i have installed the nginx passenger module.
then i configured correctly the nginx at /opt/nginx/conf directory.
Then when i try to restart/strat/reload/stop it says: Restarting nginx: /etc/init.d/nginx: line 42: start-stop-daemon: command not found.
My restart config is at /etc/init.d/nginx and there i have
restart|force-reload)
echo -n "Restarting $DESC: "
start-stop-daemon --stop --quiet --pidfile \
/opt/nginx/logs/$NAME.pid --exec $DAEMON
sleep 1
start-stop-daemon --start --quiet --pidfile \
/opt/nginx/logs/$NAME.pid --exec $DAEMON -- $DAEMON_OPTS
echo "$NAME."
;;
i am working on centos. please help me i cant figured it out why its happening. Thanks.