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.
 
 
 
 

26 lines
1.2 KiB

  1. <?xml version="1.0"?>
  2. <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
  3. <service_bundle type="manifest" name="o6h-memory-guard">
  4. <service name="site/o6h-memory-guard" type="service" version="1">
  5. <create_default_instance enabled="false"/>
  6. <single_instance/>
  7. <dependency name="local_filesystems" grouping="require_all" restart_on="none" type="service">
  8. <service_fmri value="svc:/system/filesystem/local:default"/>
  9. </dependency>
  10. <method_context>
  11. <method_credential user="root" group="root"/>
  12. </method_context>
  13. <exec_method type="method" name="start"
  14. exec="/opt/custom/bin/o6h-memory-guard --daemon --force-dry-run --config /opt/custom/etc/o6h-memory-guard.conf"
  15. timeout_seconds="30"/>
  16. <exec_method type="method" name="stop" exec=":kill" timeout_seconds="30"/>
  17. <property_group name="startd" type="framework">
  18. <propval name="duration" type="astring" value="contract"/>
  19. </property_group>
  20. <stability value="Unstable"/>
  21. <template>
  22. <common_name><loctext xml:lang="C">o6h memory pressure guard (initially forced dry-run)</loctext></common_name>
  23. </template>
  24. </service>
  25. </service_bundle>