Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2012 00:35
  • Star 1 You must be signed in to star a gist
  • Fork 2 You must be signed in to fork a gist
Star You must be signed in to star a gist
What would you like to do?
OpenIndiana SMF manifest for running openvpn as a service
<?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="network/openvpn" type="service" version="0">
<create_default_instance enabled="true"/>
<dependency name="fs" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/system/filesystem/local"/>
<dependency name="net" grouping="require_all" restart_on="none" type="service">
<service_fmri value="svc:/network/loopback"/>
<exec_method name="start" type="method" exec="/usr/sbin/openvpn --config /etc/openvpn/config --daemon" timeout_seconds="60">
<method_context working_directory="/var/log">
<method_credential user="root" group="root"/>
<envvar name="PATH" value="/usr/sbin:/usr/bin:/bin"/>
<exec_method name="stop" type="method" exec=":kill" timeout_seconds="60">
<stability value="External"/>
<loctext xml:lang="C">openvpn</loctext>
<manpage title="openvpn" section="8" manpath="/usr/share/man"/>
<doc_link name="" uri=""/>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment