<html>
  <head>
    <meta content="text/html; charset=ISO-8859-1"
      http-equiv="Content-Type">
  </head>
  <body bgcolor="#FFFFFF" text="#000000">
    Also, Freifunk-watchdog is really controlling when it comes to the
    wireless interfaces. When commotiond is in the middle of setting
    everything up, ffwatchd will intervene and shut down the wireless
    interfaces because the BSSID or channel doesn't match what's in
    /etc/config/wireless at that particular moment. And that's a pain in
    the ass.<br>
    <br>
    So while ffwatchd is good at keeping processes alive, we need to
    figure out how to prevent it from messing up the networking. I
    propose modifying /etc/init.d/network to include this start function
    (changes in bold):<br>
    <br>
    start() {<br>
            stop<br>
            [ -e /proc/sys/kernel/core_pattern ] && {<br>
                    ulimit -c unlimited<br>
                    echo '/tmp/%e.%p.%s.%t.core' >
    /proc/sys/kernel/core_pattern<br>
            }<br>
            service_start /sbin/netifd<br>
    <br>
            setup_switch() { return 0; }<br>
    <br>
            include /lib/network<br>
            setup_switch<br>
    <br>
            sleep 5<br>
    <br>
            <b>cp /etc/crontabs/root</b><b> /etc/crontabs/root.backup</b><b><br>
    </b><b>       sed -i -e '/ffwatchd running/d' /etc/crontabs/root</b><b><br>
    </b><b>       /etc/init.d/freifunk-watchdog stop</b><br>
    <br>
            /sbin/wifi down<br>
            /sbin/wifi up<br>
    <br>
            <b>mv /etc/crontabs/root.backup /etc/crontabs/root</b><b><br>
    </b><b>       /etc/init.d/freifunk-watchdog start</b><br>
    }<br>
    <br>
    Would this be sufficient for keeping ffwatchd from meddling with the
    wireless interfaces as commotiond configured everything and/or when
    networking was (re)started?<br>
    <br>
    -Dan<br>
    <br>
    <div class="moz-cite-prefix">On 04/30/2013 09:44 AM, Dan Staples
      wrote:<br>
    </div>
    <blockquote cite="mid:517FCAB4.7080103@opentechinstitute.org"
      type="cite">
      <pre wrap="">So although Freifunk-watchdog is installed on Commotion-openwrt, we
don't really take advantage of it. It currently only watches dropbear
and cron. Is there any reason we shouldn't add entries for the core
Commotion components? Since we've been having problems with olsrd
inexplicably shutting down, I think the watchdog could help. Here's a
/etc/config/freifunk-watchdog I'd like to add by default to DR1:

config process
        option process 'dropbear'
        option initscript '/etc/init.d/dropbear'

config process
        option process 'crond'
        option initscript '/etc/init.d/cron'

config process
        option process 'commotiond'
        option initscript '/etc/init.d/commotiond'

config process
        option process 'servald'
        option initscript '/etc/init.d/serval-dna'

config process
        option process 'avahi-daemon'
        option initscript '/etc/init.d/avahi-daemon'

config process
        option process 'olsrd'
        option initscript '/etc/init.d/olsrd'

config process
        option process 'dnsmasq'
        option initscript '/etc/init.d/dnsmasq'

I didn't add firewall, in case folks want to turn that off. Is there
anything I'm missing? Any reason not to do this?

-Dan

</pre>
    </blockquote>
    <br>
    <pre class="moz-signature" cols="72">-- 
Dan Staples

Open Technology Institute
<a class="moz-txt-link-freetext" href="https://commotionwireless.net">https://commotionwireless.net</a></pre>
  </body>
</html>