Skip to content

Commit

Permalink
zabbix: Add SMF manifest.
Browse files Browse the repository at this point in the history
Provided by Emil Petersson in TritonDataCenter#188.
  • Loading branch information
jperkin committed Apr 5, 2019
1 parent daf99c7 commit 24eddcb
Showing 1 changed file with 54 additions and 0 deletions.
54 changes: 54 additions & 0 deletions sysutils/zabbix/files/smf/manifest.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,54 @@
<?xml version="1.0"?>
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
<service_bundle type="manifest" name="export">
<service name="@SMF_PREFIX@/@SMF_NAME@" type="service" version="1">
<dependency name="fs-local" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/local"/>
</dependency>
<dependency name="network-service" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/network/service"/>
</dependency>
<dependency name="system-log" grouping="optional_all" restart_on="none" type="service">
<service_fmri value="svc:/system/system-log"/>
</dependency>
<method_context>
<method_credential user="@ZABBIX_USER@" group="@ZABBIX_GROUP@"/>
</method_context>
<instance name="agent" enabled="false">
<dependency name="config-file" grouping="require_all" restart_on="refresh" type="path">
<service_fmri value="file://localhost@PKG_SYSCONFDIR@/zabbix_agentd.conf"/>
</dependency>
<exec_method name="start" type="method" exec="@PREFIX@/sbin/zabbix_agentd -c @PKG_SYSCONFDIR@/zabbix_agentd.conf" timeout_seconds="0"/>
<exec_method name="stop" type="method" exec=":kill" timeout_seconds="0"/>
<template>
<common_name>
<loctext xml:lang="C">Zabbix agent</loctext>
</common_name>
</template>
</instance>
<instance name="server" enabled="false">
<dependency name="config-file" grouping="require_all" restart_on="refresh" type="path">
<service_fmri value="file://localhost@PKG_SYSCONFDIR@/zabbix_server.conf"/>
</dependency>
<exec_method name="start" type="method" exec="@PREFIX@/sbin/zabbix_server -c @PKG_SYSCONFDIR@/zabbix_server.conf" timeout_seconds="0"/>
<exec_method name="stop" type="method" exec=":kill" timeout_seconds="0"/>
<template>
<common_name>
<loctext xml:lang="C">Zabbix server</loctext>
</common_name>
</template>
</instance>
<instance name="proxy" enabled="false">
<dependency name="config-file" grouping="require_all" restart_on="refresh" type="path">
<service_fmri value="file://localhost@PKG_SYSCONFDIR@/zabbix_proxy.conf"/>
</dependency>
<exec_method name="start" type="method" exec="@PREFIX@/sbin/zabbix_proxy -c @PKG_SYSCONFDIR@/zabbix_proxy.conf" timeout_seconds="0"/>
<exec_method name="stop" type="method" exec=":kill" timeout_seconds="0"/>
<template>
<common_name>
<loctext xml:lang="C">Zabbix proxy</loctext>
</common_name>
</template>
</instance>
</service>
</service_bundle>

0 comments on commit 24eddcb

Please sign in to comment.