Am 20.06.2011 18:25, schrieb Jesse Norell: > On Sun, 2011-06-19 at 22:33 +0200, Reindl Harald wrote: >> there goes something terrible wrong if mysqld is not ready >> at start, playing ariund with fedora 15 and systemd ends >> most time in >> >> "warning: problem talking to server >> /var/spool/postfix/dbmail-postfix-policyd/socket: >> Connection timed out" > > Ie. that is a postfix error indicating dbmail-postfix-policyd hasn't > created that unix socket? Is dbmail-postfix-policyd still running? If > so, it might be some logic that doesn't create that socket on an initial > db connection failure or somesuch.
the socket is there but the daemon is also not starting if the socket exists already my problem is that via systemd the logging in maillog is missing too, the "socket must not exist" prevents from socket-activation via systemd and the missing logs make debugging impossible - after 6 hours blindbox i gave up >> would it be possible to try reconnect to mysql on errors or >> even exit the process would be better because "systemd" would >> start it again > > I need to do a little improvement in reconnecting for idle sockets at > least with postgres, I could try to catch what's going on here, too, if > we can nail it down. > > Ironically, wasn't one of your most recent requests just the opposite > - if there's a database problem you wanted it to not exit and allow mail > to pass, since a quota check isn't a show stopper? ;) the problem is that postfix accepts no longer mails if the policdy is used on Fedora 15 in combination with systemd > For the moment maybe put a "sleep 30" in your init script, and I'll > try to look for that socket creation problem. The reconnect logic might > take a bit longer and I'm short on time at the moment. no way - systemd does not like such things it gets startet but does not work and if i stop it and start it again postfix accepts messages but never after start the machine "systemd" is a topic because i am forced to Fedora 15 for use new hardware (Sandy Bdrige and Intel Network Card) and anyways end of the year F14 support ends and i must migrate all servers [root@rh:~]$ cat /lib/systemd/system/dbmail-postfix-policyd.service [Unit] Description=DBMail Policy Service After=syslog.target sockets.target mysqld.service Before=postfix.service [Service] Type=simple PIDFile=/var/spool/postfix/dbmail-postfix-policyd/pid ExecStartPre=/bin/rm -f /var/spool/postfix/dbmail-postfix-policyd/pid ExecStartPre=/bin/rm -f /var/spool/postfix/dbmail-postfix-policyd/socket ExecStart=/usr/sbin/dbmail-postfix-policyd --user=postfix --group=postfix --dbmail-conf=/etc/dbmail-postfix-policyd.conf --dbmail-version=2 --unix=/var/spool/postfix/dbmail-postfix-policyd/socket --pidfile=/var/spool/postfix/dbmail-postfix-policyd/pid Restart=always RestartSec=2 [Install] WantedBy=multi-user.target
signature.asc
Description: OpenPGP digital signature
_______________________________________________ DBmail mailing list [email protected] http://mailman.fastxs.nl/cgi-bin/mailman/listinfo/dbmail
