In setting up the new mdnsd daemon for use in a research project, I
found that the provided System V initialization script failed with a
"command not found" message. I traced the problem to a lack of quotes in
the following lines:
if [ -r /sbin/start-stop-daemon ]; then
START=3Dstart-stop-daemon --start --quiet --exec
STOP=3Dstart-stop-daemon --stop -s TERM --quiet --oknodo --exec
else
Without the quotes around the variable contents, the shell attempted to
assign the value "start-stop-daemon" to the variables and run commands
named "--start" and "--stop", respectively. By adding quotes around the
contents of the variables, this problem can be averted:
if [ -r /sbin/start-stop-daemon ]; then
START=3D'start-stop-daemon --start --quiet --exec'
STOP=3D'start-stop-daemon --stop -s TERM --quiet --oknodo --exec'
else
I have successfully used this alteration on my own computer, a Debian
installation, and one of our research computers, which run Red Hat 9.
Both exhibited the problem described above prior to this change.
[demime 0.98b removed an attachment of type application/pgp-signature which had a name of signature.asc]
_______________________________________________
rendezvous mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/rendezvous
Do not post admin requests to the list. They will be ignored.