[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: /service/qmail-send/log and /service/qmail-smtpd/log daemonsaren't staying alive
Please don't cc: me; I'm on the list and set Mail-Followup-To: appropriately.
Also, please fix your quoting (I've corrected it for this reply).
Bart <bart-list@redhanky.net> wrote:
>
> > > bash-2.05a# qmailctl stat
> > > /service/qmail-send: up (pid 14141) 73337 seconds
> > > /service/qmail-send/log: up (pid 13931) 0 seconds
> > > /service/qmail-smtpd: up (pid 3142) 73198 seconds
> > > /service/qmail-smtpd/log: up (pid 32361) 1 seconds
> > Your log service scripts are broken. Stop qmail completely (qmailctl
> > stop), then post your .../log/run scripts and the output of running
> > .../log/run by hand.
> Scripts:
> /service/qmail-send/log/run :
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
> /var/log/qmail
>
> /service/qmail-smtpd/log/run :
> #!/bin/sh
> exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
> /var/log/qmail/smtpd
Assuming there's no nonprinting characters in there, and the line wraps are
merely a result of your mailer, those look okay.
> Output:
> bash-2.05a# exec /usr/local/bin/setuidgid qmaill /usr/local/bin/multilog t
> /var/log/qmail
> multilog: fatal: unable to open directory /var/log/qmail: file does not
> exist
I actually meant run the scripts, not copy their contents to a commandline --
but you've found the error anyways. The directory you told multilog to log to
doesn't exist.
> /var/log/qmail exists as a symlink:
> lrwxr-xr-x 1 root wheel 33 Apr 1 00:39 qmail ->
> /var/qmail/service/qmail/log/main
But does the target of the link exist? Is /var/qmail/service/qmail/log/main a
directory accessable and writable by user qmaill?
> So I've now found where the problem lies - question is what is the correct
> /recommended place for these logs to live?
I just use /var/log/qmail and /var/log/smtpd. Your mileage will vary.
Charles
--
-----------------------------------------------------------------------
Charles Cazabon <qmail@discworld.dyndns.org>
GPL'ed software available at: http://www.qcc.ca/~charlesc/software/
-----------------------------------------------------------------------