here is a single init script that will manage multiple weewx instances:

https://raw.githubusercontent.com/weewx/weewx/master/util/init.d/weewx-multi

let's say you have 3 instances of weewx running on a single host, one for a 
vantage, one for an acurite, and one for cmon (as a driver).

put the config files for each instance in /etc/weewx as:

/etc/weewx/vantage.conf
/etc/weewx/acurite.conf
/etc/weewx/cmon.conf

then you can start all three instances like this:

sudo /etc/init.d/weewx start
sudo /etc/init.d/weewx stop

or you can check the status of all three:

/etc/init.d/weewx status

or you can start individual instances like this:

sudo /etc/init.d/weewx start vantage
sudo /etc/init.d/weewx start acurite cmon
sudo /etc/init.d/weewx stop cmon

or check individual status like this:

sudo /etc/init.d/weewx status cmon

the only lines you should have to modify are these:

ALL_INSTANCES="vantage acurite"

WEEWX_ROOT=/opt/weewx


i got tired of having to maintain a separate rc script for each instance, 
and the weewx-multi script is the result.

m

-- 
You received this message because you are subscribed to the Google Groups 
"weewx-user" group.
To unsubscribe from this group and stop receiving emails from it, send an email 
to [email protected].
For more options, visit https://groups.google.com/d/optout.

Reply via email to