Hi list,
I haven't found any info on the OpenWRT wiki on this, so I thought I'd
ask here:
I have two startup scripts in /etc/init.d/ that run the same program,
but with different commandline arguments. I have ensured that the
pidfiles are different. Starting both services works. But if I run one
script with the stop command, it ends the first started daemon. I am
quite sure running multiple instances of the same daemon is supported
as there's two hostapd's.
Here's the custom init script I'm using to run a second dnsmasq
instance:
---snip---
#!/bin/sh /etc/rc.common
START=66
USE_PROCD=1
CONFFILE=/etc/dnsmasq_br-lan.conf
start_service() {
procd_open_instance br-lan
procd_set_param command /usr/sbin/dnsmasq -C $CONFFILE -x
/var/run/dnsmasq_br-lan.pid -k
procd_set_param file $CONFFILE
procd_set_param respawn
procd_close_instance
}
---snap---
Thanks for your help,
Christian
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users