Unexpected error messages with start-stop-daemon
I have a start script that uses start-stop-daemon to run a perl script. Works find when executed manually but when I run it in a script I get:
Starting collectl: collectlsh: /bin/rpm: No such file or directory
sh: -c: line 0: syntax error near unexpected token `|'
sh: -c: line 0: `|head -n1'
The actual command being executed in the script is:
start-stop-daemon --quiet --start --exec $COLLECTL -- -D
where $COLLECTL is set to /opt/hp/collectl/sbin/collectl
the funny thing is my daemon DOES start! I can't find any references to rpm in the start-stop-daemon man page and since this command is binary, I can't see what it's doing.
rpm IS on the system only its in /usr/bin/rpm instead of /bin/rpm and I want my script to be flexible enough to run on differently configured systems
any idea what's going on and whether or not this is a bug or a feature of start-stop-daemon?
Last edited by markseger; 10-28-2008 at 10:33 AM.