<p><a href="https://gerrit.osmocom.org/11144">View Change</a></p><p>2 comments:</p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0;"><p><a href="https://gerrit.osmocom.org/#/c/11144/6/net/tmpl_std/run.sh">File net/tmpl_std/run.sh:</a></p><ul style="list-style: none; padding: 0;"><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11144/6/net/tmpl_std/run.sh@79">Patch Set #6, Line 79:</a> <code style="font-family:monospace,monospace">  kamailio="$(sudo which kamailio)"</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">oof, ok ... maybe instead we should include /sbin or something in the $PATH? […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Done</p></li><li style="margin: 0; padding: 0 0 0 16px;"><p style="margin-bottom: 4px;"><a href="https://gerrit.osmocom.org/#/c/11144/6/net/tmpl_std/run.sh@88">Patch Set #6, Line 88:</a> <code style="font-family:monospace,monospace">  sudo mkdir -p /var/run/kamailio</code></p><p><blockquote style="border-left: 1px solid #aaa; margin: 10px 0; padding: 0 10px;">can we instead keep the kamailio run dir as a local subdir? Is it not configurable in kamailio.cfg? […]</blockquote></p><p style="white-space: pre-wrap; word-wrap: break-word;">Turns out, it is configurable as "rundir" in the config. I've set it to "/tmp/kamailio_rundir" now, and kamailio creates that folder and is happy with it.</p><p style="white-space: pre-wrap; word-wrap: break-word;">It would of course be better to not use /tmp for this either (or to have random names and clean it up properly). But then again we would need to change that for the socket path too, so I think it is good enough for now.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Maybe at a later point we could add a well defined temporary directory to the script, which can be used with a variable in the configs.</p><p style="white-space: pre-wrap; word-wrap: break-word;">Your thoughts on sudo sound good to me.</p></li></ul></li></ul><p>To view, visit <a href="https://gerrit.osmocom.org/11144">change 11144</a>. To unsubscribe, or for help writing mail filters, visit <a href="https://gerrit.osmocom.org/settings">settings</a>.</p><div itemscope itemtype="http://schema.org/EmailMessage"><div itemscope itemprop="action" itemtype="http://schema.org/ViewAction"><link itemprop="url" href="https://gerrit.osmocom.org/11144"/><meta itemprop="name" content="View Change"/></div></div>

<div style="display:none"> Gerrit-Project: osmo-dev </div>
<div style="display:none"> Gerrit-Branch: master </div>
<div style="display:none"> Gerrit-MessageType: comment </div>
<div style="display:none"> Gerrit-Change-Id: Ia5c4e9992eab390bc6d26ada7564223ff41a01b2 </div>
<div style="display:none"> Gerrit-Change-Number: 11144 </div>
<div style="display:none"> Gerrit-PatchSet: 6 </div>
<div style="display:none"> Gerrit-Owner: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-Assignee: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Neels Hofmeyr <nhofmeyr@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: Pau Espin Pedrol <pespin@sysmocom.de> </div>
<div style="display:none"> Gerrit-Reviewer: osmith <osmith@sysmocom.de> </div>
<div style="display:none"> Gerrit-CC: daniel <dwillmann@sysmocom.de> </div>
<div style="display:none"> Gerrit-Comment-Date: Fri, 12 Oct 2018 11:46:55 +0000 </div>
<div style="display:none"> Gerrit-HasComments: Yes </div>
<div style="display:none"> Gerrit-HasLabels: No </div>