|
@@ -0,0 +1,39 @@
|
|
|
|
|
+<?xml version="1.0"?>
|
|
|
|
|
+<!DOCTYPE service_bundle SYSTEM
|
|
|
|
|
+ "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
|
|
|
|
|
+
|
|
|
|
|
+<service_bundle type="manifest" name="sensu-client">
|
|
|
|
|
+ <service name="site/sensu-client" type="service" version="1">
|
|
|
|
|
+ <create_default_instance enabled="false" />
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Dependencies -->
|
|
|
|
|
+ <dependency
|
|
|
|
|
+ name="filesystem-local" grouping="require_all"
|
|
|
|
|
+ restart_on="restart" type="service">
|
|
|
|
|
+ <service_fmri value="svc:/system/filesystem/local:default" />
|
|
|
|
|
+ </dependency>
|
|
|
|
|
+
|
|
|
|
|
+ <!-- Execution method for start and stop -->
|
|
|
|
|
+ <exec_method
|
|
|
|
|
+ type="method" name="start"
|
|
|
|
|
+ exec="SENSU_HOME/app/sbin/sensu_svcs_wrapper.sh start" timeout_seconds="60" >
|
|
|
|
|
+ <method_context>
|
|
|
|
|
+ <method_credential user="root" group="root" />
|
|
|
|
|
+ </method_context>
|
|
|
|
|
+ </exec_method>
|
|
|
|
|
+
|
|
|
|
|
+ <exec_method
|
|
|
|
|
+ type="method" name="stop"
|
|
|
|
|
+ exec="SENSU_HOME/app/sbin/sensu_svcs_wrapper.sh stop" timeout_seconds="60" >
|
|
|
|
|
+ </exec_method>
|
|
|
|
|
+
|
|
|
|
|
+ <template>
|
|
|
|
|
+ <common_name>
|
|
|
|
|
+ <loctext xml:lang="C">Sensu Client (SE)</loctext>
|
|
|
|
|
+ </common_name>
|
|
|
|
|
+ <documentation>
|
|
|
|
|
+ <manpage title="No man" section="99" manpath="/dev/null" />
|
|
|
|
|
+ </documentation>
|
|
|
|
|
+ </template>
|
|
|
|
|
+ </service>
|
|
|
|
|
+</service_bundle>
|