Hi,
First of all I am a newbie to the *nix. I use supervise from deamon tools 0.61.
To run the following run file:
*********************************
Version a:
#!/bin/sh
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`" \
setuidgid qmaill multilog t /var/log/qmail/mail
*********************************
Version b:
#!/bin/sh
exec env - PATH="/var/qmail/bin:$PATH" \
qmail-start "`cat /var/qmail/control/defaultdelivery`" | \
setuidgid qmaill multilog t /var/log/qmail/mail
When I use version a, logging does not work. I checked man page for qmail-start it
says the following is a calling
convention: qmail-start [ defaultdelivery [ logger arg ... ] ]. As far as I
understand that should work. What am I
missing.
When I use version b (piping) the logging does work. But I can not use svc -dx to stop
the service. I can see using ps
-ef that sh ./run is there after starting the file. After stopping (trying) the
service sh ./run is gone but the
qmail-send and the rest of the bunch is there. I can kill the service using kill or
killall, but it just drives me
nuts.
Sincerely,
Vladimir Berezniker