I'm puzzled by a suggestion that was made to me to support the idea of temporarily deactivating the procd component of a procd-compatible service
by putting "USE_PROCD=0" at the top of the /etc/init.d file for that
service, which confuses me a couple ways.

  First, is that even supported? Once you load a /etc/init.d service
file with numerous calls to the procd routines, how can you possibly
just turn them off? I *guess* you can fill that service file with
numerous checks for the value of USE_PROCD, but is that ever really
done? Is there a package that does it this way I can take a look at?

  Also, setting "USE_PROCD=0" wouldn't even work since the test in
/etc/rc.common is:

[ -n "$USE_PROCD" ] && ... pull in procd stuff ...

so setting it to "0" would, in fact, have no effect, anyway.

  Anyway, is it some kind of standard practice to make a service file
compatible with turning off procd once you make it procd-compatible?

rday
_______________________________________________
openwrt-users mailing list
[email protected]
https://lists.openwrt.org/cgi-bin/mailman/listinfo/openwrt-users

Reply via email to