Created
July 22, 2014 06:38
-
-
Save drscream/7712174cf15e3387d320 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
<?xml version="1.0"?> | |
<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> | |
<service_bundle type="manifest" name="znc"> | |
<service name="network/znc" type="service" version="1"> | |
<single_instance /> | |
<dependency name="network" grouping="require_all" restart_on="none" type="service"> | |
<service_fmri value="svc:/milestone/network:default"/> | |
</dependency> | |
<dependency name="filesystem" grouping="require_all" restart_on="error" type="service"> | |
<service_fmri value="svc:/system/filesystem/local"/> | |
</dependency> | |
<instance name="default" enabled="false"> | |
<method_context working_directory='/tmp'> | |
<method_credential user='znc' group='znc'/> | |
<method_environment> | |
<envvar name='PATH' value='/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin:/bin'/> | |
</method_environment> | |
</method_context> | |
<exec_method type="method" name="start" exec="/opt/local/bin/znc -f -d /opt/local/etc/znc" timeout_seconds="10" /> | |
<exec_method type="method" name="refresh" exec=":kill -HUP" timeout_seconds="10" /> | |
<exec_method type="method" name="stop" exec=":kill" timeout_seconds="10" /> | |
<property_group name="startd" type="framework"> | |
<propval name="duration" type="astring" value="child"/> | |
<propval name="ignore_error" type="astring" value="core,signal"/> | |
</property_group> | |
</instance> | |
<stability value="Evolving"/> | |
<template> | |
<common_name> | |
<loctext xml:lang="C">ZNC, an advanced IRC bouncer</loctext> | |
</common_name> | |
<documentation> | |
<doc_link name="ZNC, an advanced IRC bouncer" uri="http://wiki.znc.in/ZNC"/> | |
</documentation> | |
</template> | |
</service> | |
</service_bundle> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment