[Supervisor-users] group of groups?

classic Classic list List threaded Threaded
1 message Options
Reply | Threaded
Open this post in threaded view
|

[Supervisor-users] group of groups?

Paul Fox
i have a set of services, each of which consists of several
programs.

the individual sets of programs for each of these services
are grouped already:

    [group:den]
    programs = read_remotes, read_remotes_relay, run_lircd

    [group:study]
    programs = read_remotes, read_remotes_relay, run_lircd

    [group:shop]
    programs = read_remotes, read_remotes_relay, run_lircd

    [group:sunny]
    programs = read_remotes, read_remotes_relay, run_lircd

    [program:run_lircd]
    command = /usr/local/bin/run_lircd %(group_name)s
    autorestart = true
    stdout_logfile=/var/log/supervisor/run_lircd-%(group_name)s.log

    [program:read_remotes]
    command = bash -c "sleep 3; exec /usr/local/bin/read_remotes %(group_name)s no-hotkeys"
    autorestart = true
    stdout_logfile=/var/log/supervisor/read_remotes-%(group_name)s.log

    [program:read_remotes_relay]
    command = bash -c "sleep 6; exec /usr/local/bin/read_remotes_relay %(group_name)s"
    autorestart = true
    stdout_logfile=/var/log/supervisor/read_remotes_relay-%(group_name)s.log


i'd like to be able to manage the groups all at once -- i.e., i'd like
to say this, so that "supervisorctl stop remotes" would work:

    [group:remotes]
    groups = den,study,shop,sunny

is something like this possible?  or is the group hierarchy just
one level deep?

paul
=----------------------
paul fox, [hidden email] (arlington, ma)

_______________________________________________
Supervisor-users mailing list
[hidden email]
https://lists.supervisord.org/mailman/listinfo/supervisor-users