Hi, the scripts are executed. I did a mistake with path names for the logging files.
But the issue with executing dnsmasq twice is still open. Regards, Hartmut Am 05.12.2021 um 12:13 schrieb e9hack+dnsmasq:
Hi, I did configure a user script by adding: option dhcpscript '/etc/dnsmasq-test.sh' The script and the main-script are never executed. I did add a line to both scripts, which shall log to /var/run/dnsmaq/test-{1|2}.log If I check afterwards if dnsmasq is running, I see two instances. One runs as user dnsmasq and the other as user root. root@my-home:~# ps -ww | grep dnsmasq.conf.main 12651 root 2652 S {dnsmasq} /sbin/ujail -n dnsmasq -u -l -e USER_DHCPSCRIPT -r /bin/ubus -r /etc/TZ -r /etc/config/dhcp.dnsmasq -r /etc/dnsmasq-test.sh -r /etc/dnsmasq.conf -r /etc/ethers -r /etc/group -r /etc/hosts -r /etc/passwd -w /tmp/dhcp.leases -r /tmp/dnsmasq.d/main -r /tmp/hosts/dhcp.main -r /usr/bin/jshn -r /usr/lib/dnsmasq/dhcp-script.sh -r /usr/share/dnsmasq/dhcpbogushostname.conf -r /usr/share/dnsmasq/rfc6761.conf -r /usr/share/dnsmasq/trust-anchors.conf -r /usr/share/libubox/jshn.sh -r /var/etc/dnsmasq.conf.main -w /var/run/dnsmasq/ -- /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.main -k 12652 dnsmasq 4828 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.main -k 12653 root 4564 S /usr/sbin/dnsmasq -C /var/etc/dnsmasq.conf.main -k 15415 root 1392 S grep dnsmasq.conf.main In the ujail command line, must the part '-e USER_DHCPSCRIPT' contain the content of the variable? Regards, Hartmut
_______________________________________________ openwrt-devel mailing list openwrt-devel@lists.openwrt.org https://lists.openwrt.org/mailman/listinfo/openwrt-devel