Should procd_open_instance
and procd_close_instance
appear in the init script only once, or can I define more than one instance in the same start/stop? The task is to start/stop two applications which work with each other in the background but have system monitor and restart if any of them crash/exit separately. Those apps are different ones and (at this time) can't be combined into the one. Thanks!
Ok, that's actually easy to test - and it works. But I think my question is about if it is "supported" and expected to work this way by design.
Of course. Using a config_foreach start_instance
I get can get multiple instances, so no reason to see they’re not supported.
==========================================
+++ My init script : Active Instances +++
________________________________________
Instance PID
----------------------------------------
WG 31156
lan 31155
wan 31154
========================================
2 Likes
This topic was automatically closed 10 days after the last reply. New replies are no longer allowed.