<html>
  <head>
    <meta content="text/html; charset=windows-1252"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    <p>Hello,</p>
    <p>I created a wiki page to keep these systemd unit settings -- may
      be easier to find for someone looking for them:</p>
    <p>  *
      <a class="moz-txt-link-freetext" href="https://www.kamailio.org/wiki/tutorials/kamailio-startup-scripts">https://www.kamailio.org/wiki/tutorials/kamailio-startup-scripts</a></p>
    <p>Anyone feel free to add there more content and tips for startup
      scripts on various systems.</p>
    <p>Cheers,<br>
      Daniel<br>
    </p>
    <br>
    <div class="moz-cite-prefix">On 31/05/16 17:22, Anthony Messina
      wrote:<br>
    </div>
    <blockquote cite="mid:1722352.Tj4eBnTeML@linux-ws1.messinet.com"
      type="cite">
      <pre wrap="">## Content of /etc/systemd/kamailio.service
[Unit]
Description=Kamailio SIP Server
Documentation=man:kamailio(8) <a moz-do-not-send="true" class="moz-txt-link-freetext" href="http://www.kamailio.org/">http://www.kamailio.org/</a>
After=syslog.target network-online.target

[Service]
Type=forking
User=kamailio
Environment=SHM_SIZE=64
Environment=PKG_SIZE=8
ExecStartPre=/usr/sbin/kamailio -c
ExecStart=/usr/sbin/kamailio -m $SHM_SIZE -M $PKG_SIZE \
 -P /run/kamailio/kamailio.pid
ExecStopPost=/usr/bin/rm -f /run/kamailio/kamailio.pid
PIDFile=/run/kamailio/kamailio.pid
Restart=on-failure
RestartSec=30

[Install]
WantedBy=multi-user.target


## Content of /etc/tmpfiles.d/kamailio.conf
d /run/kamailio 0750 kamailio kamailio
</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Daniel-Constantin Mierla
<a class="moz-txt-link-freetext" href="http://www.asipto.com">http://www.asipto.com</a> - <a class="moz-txt-link-freetext" href="http://www.kamailio.org">http://www.kamailio.org</a>
<a class="moz-txt-link-freetext" href="http://twitter.com/#!/miconda">http://twitter.com/#!/miconda</a> - <a class="moz-txt-link-freetext" href="http://www.linkedin.com/in/miconda">http://www.linkedin.com/in/miconda</a></pre>
  </body>
</html>