<html xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office" xmlns:w="urn:schemas-microsoft-com:office:word" xmlns:m="http://schemas.microsoft.com/office/2004/12/omml" xmlns="http://www.w3.org/TR/REC-html40"><head><meta http-equiv=Content-Type content="text/html; charset=iso-8859-1"><meta name=Generator content="Microsoft Word 15 (filtered medium)"><style><!--
/* Font Definitions */
@font-face
        {font-family:"Cambria Math";
        panose-1:2 4 5 3 5 4 6 3 2 4;}
@font-face
        {font-family:Calibri;
        panose-1:2 15 5 2 2 2 4 3 2 4;}
/* Style Definitions */
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0cm;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
a:link, span.MsoHyperlink
        {mso-style-priority:99;
        color:#0563C1;
        text-decoration:underline;}
a:visited, span.MsoHyperlinkFollowed
        {mso-style-priority:99;
        color:#954F72;
        text-decoration:underline;}
span.E-MailFormatvorlage17
        {mso-style-type:personal-compose;
        font-family:"Calibri",sans-serif;
        color:windowtext;}
.MsoChpDefault
        {mso-style-type:export-only;
        font-family:"Calibri",sans-serif;
        mso-fareast-language:EN-US;}
@page WordSection1
        {size:612.0pt 792.0pt;
        margin:70.85pt 70.85pt 2.0cm 70.85pt;}
div.WordSection1
        {page:WordSection1;}
--></style><!--[if gte mso 9]><xml>
<o:shapedefaults v:ext="edit" spidmax="1026" />
</xml><![endif]--><!--[if gte mso 9]><xml>
<o:shapelayout v:ext="edit">
<o:idmap v:ext="edit" data="1" />
</o:shapelayout></xml><![endif]--></head><body lang=DE link="#0563C1" vlink="#954F72"><div class=WordSection1><p class=MsoNormal>Hi Debian Sympa Team,<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>we installed Sympa Version 6.1.23~dfsg-2 as Debian package on a Debian GNU/Linux 8 server.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>After installing we noticed that there was no systemd-command in postinst-script and that sympa was not enabled (we extpected something like systemctl enable sympa).<o:p></o:p></p><p class=MsoNormal>My colleague also didn’t find a systemd-file in the upstream code.<br>Is that a bug in the current version?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>After enabling sympa manually it works but after the reboot of the server we see messages in /var/log/daemon.log that show that initially sympa can’t be started by systemd because the mysql database is not reachable:<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Jan 22 06:34:05 lists1 sympa.pl[639]: DBI connect('dbname=mysql;host=localhost','root',...) failed: Can't connect to local MySQL server through socket '/var/run/mysqld/mysqld.sock' (2) at /usr/share/sympa/lib/SQLSource.pm line 352.<o:p></o:p></p><p class=MsoNormal>Jan 22 06:34:06 lists1 sympa.pl[639]: Database sympa defined in sympa.conf has not the right structure or is unreachable. verify db_xxx parameters in sympa.conf<o:p></o:p></p><p class=MsoNormal>Jan 22 06:34:06 lists1 systemd[1]: sympa.service: control process exited, code=exited status=1<o:p></o:p></p><p class=MsoNormal>Jan 22 06:34:06 lists1 systemd[1]: Failed to start SYMPA mailing list manager.<o:p></o:p></p><p class=MsoNormal>Jan 22 06:34:06 lists1 systemd[1]: Unit sympa.service entered failed state.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>But when I look in the sympa logs I see that sympa is started one or two seconds later.<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>I suppose that these messages occur because the database is not started before.<o:p></o:p></p><p class=MsoNormal>When using start-scripts in /etc/init.d we started the database first and the sympa daemon later.<o:p></o:p></p><p class=MsoNormal>Shouldn‘t this also be the same order in systemd? Should there be an entry like „after mysql“ in /lib/systemd/system/sympa.service?<o:p></o:p></p><p class=MsoNormal>Or is it ok that we have this messages in /var/log/daemon.log after every reboot ?<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal>Thank your very much for your help.<o:p></o:p></p><p class=MsoNormal>Best regards,<o:p></o:p></p><p class=MsoNormal>Sabine<o:p></o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal><o:p> </o:p></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Arial",sans-serif;mso-fareast-language:DE'>----------<br><br>Sabine Lorenz<br>Karlsruher Institut für Technologie (KIT)<br>Steinbuch Centre for Computing<br><br>Hermann von Helmholtz Platz 1<br>76344 Eggenstein-Leopoldshafen<br>Telefon: +49 721 608-28633 <br><br>E-Mail: <a href="mailto:sabine.lorenz@kit.edu"><span style='color:blue'>sabine.lorenz@kit.edu</span></a></span><span style='font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:DE'><br><a href="http://www.kit.edu/scc-Adresse"><span style='font-size:7.5pt;font-family:"Arial",sans-serif;color:blue'>www.kit.edu/scc</span></a></span><span style='font-size:7.5pt;font-family:"Arial",sans-serif;mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal style='mso-margin-top-alt:auto;mso-margin-bottom-alt:auto'><span style='font-size:7.5pt;font-family:"Arial",sans-serif;mso-fareast-language:DE'>KIT - Universität des Landes Baden-Württemberg und <br>nationales Großforschungszentrum in der Helmholtz-Gemeinschaft</span><span style='font-size:10.0pt;font-family:"Times New Roman",serif;mso-fareast-language:DE'><o:p></o:p></span></p><p class=MsoNormal><span style='font-size:7.5pt;font-family:"Arial",sans-serif;mso-fareast-language:DE'>Das KIT ist seit 2010 als familiengerechte Hochschule zertifiziert.<o:p></o:p></span></p><p class=MsoNormal><o:p> </o:p></p></div></body></html>