Created
July 18, 2012 06:09
-
-
Save papertigers/3134532 to your computer and use it in GitHub Desktop.
Splunk SMF Manifest
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
<?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='application/splunkforwarder' type='service' version='0'> | |
<create_default_instance enabled='true'/> | |
<single_instance/> | |
<dependency name='network' grouping='require_all' restart_on='error' 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> | |
<method_context working_directory=':default'> | |
<method_credential group='splunk' user='splunk'/> | |
<method_environment> | |
<envvar name='PATH' value='/opt/local/bin:/opt/local/sbin:/usr/bin:/usr/sbin'/> | |
<envvar name='HOME' value='/splunk'/> | |
</method_environment> | |
</method_context> | |
<exec_method name='start' type='method' exec='/splunk/splunkforwarder/bin/splunk %m --accept-license' timeout_seconds='300'> | |
<method_context> | |
<method_environment> | |
<envvar name='UMEM_DEBUG' value='default'/> | |
</method_environment> | |
</method_context> | |
</exec_method> | |
<exec_method name='stop' type='method' exec='/splunk/splunkforwarder/bin/splunk %m' timeout_seconds='300'/> | |
<exec_method name='refresh' type='method' exec='/splunk/splunkforwarder/bin/splunk restart' timeout_seconds='600'/> | |
<stability value='Evolving'/> | |
<template> | |
<common_name> | |
<loctext xml:lang='C'>splunkforwarder - Splunk Forwarder</loctext> | |
</common_name> | |
</template> | |
</service> | |
</service_bundle> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment