From 7a09db0eab856b4fc65d30daa0697f58a6f0f865 Mon Sep 17 00:00:00 2001 From: Markus Zolliker Date: Tue, 29 Apr 2025 15:36:54 +0200 Subject: [PATCH] add global or local as service for sehistory --- cfg/servicemanager.cfg | 11 ++++++++--- sehistoryman.py | 8 ++++---- 2 files changed, 12 insertions(+), 7 deletions(-) diff --git a/cfg/servicemanager.cfg b/cfg/servicemanager.cfg index f53be36..02c8f23 100644 --- a/cfg/servicemanager.cfg +++ b/cfg/servicemanager.cfg @@ -19,11 +19,16 @@ sea_command = ./SeaServer %(serv)s.tcl SEWEB_ROOT = ~/seweb SEWEB_PORT = 8941 -SEWEB_HISTORY = ~/seweb/history -seweb_command = python3 seweb.py frappy ins=%(ins)s port=%(port)s +seweb_command = ~/sevenv/bin/python secop-webserver %(port)s -PYTHONPATH = ~ +SEHISTORY_ROOT = ~/sehistory +SEHISTORY_PORT = 0 +sehistory_command = ~/sevenv/bin/python feeder.py %(service)s + +PYTHONPATH = ~:~/frappy [MAIN] frappy = 1 sea = 1 +seweb = 1 +sehistory = 1 diff --git a/sehistoryman.py b/sehistoryman.py index 0642e40..8e10c7f 100644 --- a/sehistoryman.py +++ b/sehistoryman.py @@ -24,13 +24,13 @@ from servicemanager.base import ServiceManager class SehistoryManager(ServiceManager): group = 'sehistory' - services = ('sehistory',) + services = ('central', 'local') USAGE = """ Usage: - sehistory start - sehistory restart - sehistory stop + sehistory start + sehistory restart + sehistory stop sehistory list [] %s