<p>ENV: Debian 8<br>
So on most Linux systems the /var/run folder is a tmpfs and after which clears after each reboot<br>
As I try to start up kamailio after a reboot through kamctl I get the following error.<br>
"ERROR: PID file /var/run/kamailio.pid does not exist -- Kamailio start failed"<br>
Because kamailio does not have the permission to write to the /var/run folder as the kamailio user.<br>
Would it be possible to add in the "kamctl" code a section where the SPECIFIED PID LOCATION (/var/run/kamailio) is checked and if it does not exist create it as the root user and chown it to the SPECIFIED USER (kamailio)? The way I have patched it for now is to create a init script that creates a /var/run/kamailio folder and chmods it to kamailio:kamailio</p>

<p>Thanks everyone!</p>

<p style="font-size:small;-webkit-text-size-adjust:none;color:#666;">—<br>Reply to this email directly or <a href="https://github.com/kamailio/kamailio/issues/231">view it on GitHub</a>.<img alt="" height="1" src="https://github.com/notifications/beacon/AF36Zeno06iZZI0E5wWfbkGsUlL-iIAJks5oaJ8BgaJpZM4FSFYa.gif" width="1" /></p>
<div itemscope itemtype="http://schema.org/EmailMessage">
  <div itemprop="action" itemscope itemtype="http://schema.org/ViewAction">
    <link itemprop="url" href="https://github.com/kamailio/kamailio/issues/231"></link>
    <meta itemprop="name" content="View Issue"></meta>
  </div>
  <meta itemprop="description" content="View this Issue on GitHub"></meta>
</div>