add sehistory and seweb

This commit is contained in:
2025-04-29 11:50:45 +02:00
parent a36df58081
commit 74684381a6
3 changed files with 47 additions and 2 deletions

View File

@ -32,12 +32,13 @@ from servicemanager.nicosman import NicosManager
from servicemanager.seaman import SeaManager from servicemanager.seaman import SeaManager
from servicemanager.frappyman import FrappyManager, Reconnect, Keep from servicemanager.frappyman import FrappyManager, Reconnect, Keep
from servicemanager.sewebman import SewebManager from servicemanager.sewebman import SewebManager
from servicemanager.sehistoryman import SehistoryManager
#from servicemanager.racks import RackConfig #from servicemanager.racks import RackConfig
#rack = RackConfig() #rack = RackConfig()
all = NicosManager, FrappyManager, SeaManager, SewebManager all = NicosManager, FrappyManager, SeaManager, SewebManager, SehistoryManager
KINDS = 'action', 'ins', 'service' KINDS = 'action', 'ins', 'service'

View File

@ -316,6 +316,12 @@ def do_sehistory():
do('git pull') do('git pull')
def do_seweb():
"""SE web client"""
if check_repo(home, 'seweb', None, 'master'):
do('git pull')
def do_sea(): def do_sea():
"""SEA server scripts""" """SEA server scripts"""
if check_repo(home, 'sea', 'gitlab'): if check_repo(home, 'sea', 'gitlab'):
@ -551,7 +557,7 @@ else:
for a in nc_actions: for a in nc_actions:
ncactionfuncs[a] = locals()['do_%s' % a] ncactionfuncs[a] = locals()['do_%s' % a]
actions = ['ssh', 'bin', 'scfg', 'frappy', 'servicemanager', 'sea', actions = ['ssh', 'bin', 'scfg', 'frappy', 'servicemanager', 'sea',
'calcurves', 'sehistory'] 'calcurves', 'sehistory', 'seweb']
actionfuncs = {} actionfuncs = {}
for a in actions: for a in actions:

38
sehistoryman.py Normal file
View File

@ -0,0 +1,38 @@
# *****************************************************************************
#
# This program is free software; you can redistribute it and/or modify it under
# the terms of the GNU General Public License as published by the Free Software
# Foundation; either version 2 of the License, or (at your option) any later
# version.
#
# This program is distributed in the hope that it will be useful, but WITHOUT
# ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS
# FOR A PARTICULAR PURPOSE. See the GNU General Public License for more
# details.
#
# You should have received a copy of the GNU General Public License along with
# this program; if not, write to the Free Software Foundation, Inc.,
# 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA
#
# Module authors:
# Markus Zolliker <markus.zolliker@psi.ch>
#
# *****************************************************************************
from servicemanager.base import ServiceManager
class SehistoryManager(ServiceManager):
group = 'sehistory'
services = ('sehistory',)
USAGE = """
Usage:
sehistory start <instance>
sehistory restart <instance>
sehistory stop <instance>
sehistory list [<instance>]
%s
"""