reload plugins after dhcp (raspbian stretch)

88 views
Skip to first unread message

edl...@yahoo.com

unread,
Jun 6, 2018, 12:30:02 PM6/6/18
to open-lighting
Hello!

I am running raspberry-pi-netinst to provision raspbian stretch latest and greatest on a Pi 1 B+ with ola installed via post-install.txt.  At first boot, olad starts before an ipv4 address is available on eth0 causing some plugins to not load (e131 specifically).  After struggling with systemd I gave up on fixing the unit file because network.target and network-online.target are both reached before dhcp finishes.  My solution is:

# cat >> /etc/dhcp/dhclient.exit.hooks
#!/bin/sh
kill -HUP `cat /var/run/olad.pid`

# chmod a+x /etc/dhcp/dhclient.exit.hooks

Hope this saves someone else a few days.

-scott


At boot time:
Jun  6 15:58:43 pi olad: libs/acn/E131Node.cpp:166: Failed to find an interface
Jun  6 15:58:43 pi olad: olad/PluginManager.cpp:198: Failed to start E1.31 (sACN)

After dhcp lease (five seconds later):
Jun  6 15:58:48 pi dhclient[256]: bound to 192.168.0.137 -- renewal in 1617 seconds.
Jun  6 15:58:48 pi sh[233]: bound to 192.168.0.137 -- renewal in 1617 seconds.
...
Jun  6 15:58:48 pi olad: olad/PluginManager.cpp:195: Trying to start E1.31 (sACN)
Jun  6 15:58:49 pi olad: olad/plugin_api/DeviceManager.cpp:105: Installed device: E1.31 (DMX over ACN) [192.168.0.137]:11-1
Jun  6 15:58:49 pi olad: olad/plugin_api/PortManager.cpp:119: Patched 11-1-I-0 to universe 1
Jun  6 15:58:49 pi olad: olad/PluginManager.cpp:200: Started E1.31 (sACN)

Josh Peterson

unread,
Oct 31, 2018, 7:39:05 PM10/31/18
to open-lighting
Thank you for this!
Reply all
Reply to author
Forward
0 new messages