Conservative SmartOS global-zone memory pressure guard with dry-run-first policy and SMF integration.
You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
|
- <?xml version="1.0"?>
- <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
- <service_bundle type="manifest" name="o6h-memory-guard">
- <service name="site/o6h-memory-guard" type="service" version="1">
- <create_default_instance enabled="false"/>
- <single_instance/>
- <dependency name="local_filesystems" grouping="require_all" restart_on="none" type="service">
- <service_fmri value="svc:/system/filesystem/local:default"/>
- </dependency>
- <method_context>
- <method_credential user="root" group="root"/>
- </method_context>
- <exec_method type="method" name="start"
- exec="/opt/custom/bin/o6h-memory-guard --daemon --force-dry-run --config /opt/custom/etc/o6h-memory-guard.conf"
- timeout_seconds="30"/>
- <exec_method type="method" name="stop" exec=":kill" timeout_seconds="30"/>
- <property_group name="startd" type="framework">
- <propval name="duration" type="astring" value="contract"/>
- </property_group>
- <stability value="Unstable"/>
- <template>
- <common_name><loctext xml:lang="C">o6h memory pressure guard (initially forced dry-run)</loctext></common_name>
- </template>
- </service>
- </service_bundle>
|