lpcmanager

e2cf1657db32
Add WatchdogInitial WatchdogInterval timeout values for SVGHMI
from svghmi.svghmi import SVGHMI, SVGHMILibrary
# set default values so that COG browser is managed by SVGHMI
SVGHMI.XSD = """<?xml version="1.0" encoding="utf-8" ?>
<xsd:schema xmlns:xsd="http://www.w3.org/2001/XMLSchema">
<xsd:element name="SVGHMI">
<xsd:complexType>
<xsd:attribute name="OnStart" type="xsd:string" use="optional" default="cog --platform=fdo http://127.0.0.1:{port}/{name}"/>
<xsd:attribute name="OnStop" type="xsd:string" use="optional" default="killall cog"/>
<xsd:attribute name="OnWatchdog" type="xsd:string" use="optional" default="sh -c 'killall cog; sleep 1; cog --platform=fdo http://127.0.0.1:{port}/{name}'"/>
<xsd:attribute name="WatchdogInitial" type="xsd:integer" use="optional" default="30"/>
<xsd:attribute name="WatchdogInterval" type="xsd:integer" use="optional" default="5"/>
</xsd:complexType>
</xsd:element>
</xsd:schema>
"""