hey folks. two questions about running angstrom on a beagleboard xm:
something is periodically resetting my /etc/resolv.conf file. and i dont mean after a reboot. rather, its happening on the order of minutes after i edited the file thusly: echo “nameserver 4.4.4.4” >> /etc/resolv.conf. any ideas which service is responsible? im running one of the stock angstrom images built for the board.
how can i enable sysloging in angstrom? i started syslogd, but it has yet to write anything to a log. i was hoping to inspect the syslog to determine what could be automatically wiping out my edits of the /etc/resolv.conf file.
Excerpts from Tony's message of 2012-06-29 01:30:31 +0200:
hey folks. two questions about running angstrom on a beagleboard xm:
1. something is periodically resetting my /etc/resolv.conf file. and i
dont mean after a reboot. rather, its happening on the order of minutes
after i edited the file thusly: echo "nameserver 4.4.4.4" >>
/etc/resolv.conf. any ideas which service is responsible? im running one
of the stock angstrom images built for the board.
that's because angstrom is running connman, which per default
configures itself using a dhcp server, and thus updates the resolv.conf
as well as the route and the interface at each lease renewal.
2. how can i enable sysloging in angstrom? i started syslogd, but it has
yet to write anything to a log. i was hoping to inspect the syslog to
determine what could be automatically wiping out my edits of the
/etc/resolv.conf file.
Angstrom does not use (anymore) syslogd to keep the logs, but uses
systemd's logging system, so have a look at the journalctl utility.
note that ethernet_xxx above is the name of the connection you want to set the nameserver for. Do ls /var/lib/connman for the name of your particular connection.