-
Notifications
You must be signed in to change notification settings - Fork 161
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Provided by Emil Petersson in TritonDataCenter#188.
- Loading branch information
Showing
1 changed file
with
54 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |