<p>Thanks for your infomation.<br>
i will have a try based on your input.</p>
<p>my consion:</p>
<p>Is the issue ‘kamailio restart twice’ related to mysql connection?</p>
<p>we can see SIG 15 in kamailio log. who triggers it, connection failure?</p>
<p>Although kamailio starts twice, it goes to work at last.  looks like it connects mysql sucessfully at last. does connection failure trigger kamailio restart(or trigger sig 15)?</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br />You are receiving this because you are subscribed to this thread.<br />Reply to this email directly, <a href="https://github.com/kamailio/kamailio/issues/1896#issuecomment-474366192">view it on GitHub</a>, or <a href="https://github.com/notifications/unsubscribe-auth/AF36ZRqeZ0ZqBhRJP46GhK9-YhCAhueUks5vYOT1gaJpZM4b7WTX">mute the thread</a>.<img src="https://github.com/notifications/beacon/AF36ZQ0BGnu3u46tJIs18AjzCyTJEviHks5vYOT1gaJpZM4b7WTX.gif" height="1" width="1" alt="" /></p>
<script type="application/json" data-scope="inboxmarkup">{"api_version":"1.0","publisher":{"api_key":"05dde50f1d1a384dd78767c55493e4bb","name":"GitHub"},"entity":{"external_key":"github/kamailio/kamailio","title":"kamailio/kamailio","subtitle":"GitHub repository","main_image_url":"https://github.githubassets.com/images/email/message_cards/header.png","avatar_image_url":"https://github.githubassets.com/images/email/message_cards/avatar.png","action":{"name":"Open in GitHub","url":"https://github.com/kamailio/kamailio"}},"updates":{"snippets":[{"icon":"PERSON","message":"@aleczmw in #1896: Thanks for your infomation.\r\ni will have a try based on your input.\r\n\r\nmy consion:\r\n\r\nIs the issue ‘kamailio restart twice’ related to mysql connection?\r\n\r\nwe can see SIG 15 in kamailio log. who triggers it, connection failure?\r\n\r\nAlthough kamailio starts twice, it goes to work at last.  looks like it connects mysql sucessfully at last. does connection failure trigger kamailio restart(or trigger sig 15)?\r\n\r\n\r\n"}],"action":{"name":"View Issue","url":"https://github.com/kamailio/kamailio/issues/1896#issuecomment-474366192"}}}</script>
<script type="application/ld+json">[
{
"@context": "http://schema.org",
"@type": "EmailMessage",
"potentialAction": {
"@type": "ViewAction",
"target": "https://github.com/kamailio/kamailio/issues/1896#issuecomment-474366192",
"url": "https://github.com/kamailio/kamailio/issues/1896#issuecomment-474366192",
"name": "View Issue"
},
"description": "View this Issue on GitHub",
"publisher": {
"@type": "Organization",
"name": "GitHub",
"url": "https://github.com"
}
}
]</script>