<p>... is updated</p>

<p>to test:<br>
1) create a service w/ web interface, where service IP address is 127.0.0.1 and Port field is blank, and a TTL > 0. You should see a file in /etc/avahi/services/ called 127_460_460_461.service.<br>
2) Log in as admin, and edit the service in the web interface. Add '80' to the Port field, and click submit. In the /etc/avahi/services directory, the old file 127_460_460_461.service should no longer be there, and 127_460_460_46180.service should be there instead.</p>

<hr>

<h4>You can merge this Pull Request by running</h4>
<pre>  git pull https://github.com/opentechinstitute/commotion-apps service-delete-fix</pre>
<p>Or view, comment on, or merge it at:</p>
<p>  <a href='https://github.com/opentechinstitute/commotion-apps/pull/9'>https://github.com/opentechinstitute/commotion-apps/pull/9</a></p>

<h4>Commit Summary</h4>
<ul>
  <li>fixed bug where obsolete service files werent being deleted when service is updated</li>
</ul>

<h4>File Changes</h4>
<ul>
  <li>
    <strong>M</strong>
    <a href="https://github.com/opentechinstitute/commotion-apps/pull/9/files#diff-0">lua/luci/controller/commotion/apps_controller.lua</a>
    (22)
  </li>
</ul>

<h4>Patch Links:</h4>
<ul>
  <li><a href='https://github.com/opentechinstitute/commotion-apps/pull/9.patch'>https://github.com/opentechinstitute/commotion-apps/pull/9.patch</a></li>
  <li><a href='https://github.com/opentechinstitute/commotion-apps/pull/9.diff'>https://github.com/opentechinstitute/commotion-apps/pull/9.diff</a></li>
</ul>