diff options
Diffstat (limited to 'usr/src/cmd/svc/milestone/smartdc-ur.xml')
| -rw-r--r-- | usr/src/cmd/svc/milestone/smartdc-ur.xml | 62 |
1 files changed, 62 insertions, 0 deletions
diff --git a/usr/src/cmd/svc/milestone/smartdc-ur.xml b/usr/src/cmd/svc/milestone/smartdc-ur.xml new file mode 100644 index 0000000000..7ee78dcb02 --- /dev/null +++ b/usr/src/cmd/svc/milestone/smartdc-ur.xml @@ -0,0 +1,62 @@ +<?xml version="1.0"?> +<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1"> +<!-- + This Source Code Form is subject to the terms of the Mozilla Public + License, v. 2.0. If a copy of the MPL was not distributed with this + file, You can obtain one at http://mozilla.org/MPL/2.0/. +--> + +<!-- + Copyright (c) 2014, Joyent, Inc. +--> + +<service_bundle type="manifest" name="ur"> + <service name="smartdc/agent/ur" type="service" version="0.0.1"> + + <create_default_instance enabled="true"/> + <single_instance/> + + <dependency name="smartdc-init" grouping="require_all" restart_on="error" type="service"> + <service_fmri value="svc:/milestone/single-user"/> + </dependency> + + <exec_method + type="method" + name="start" + exec="/lib/svc/method/smartdc-ur %m" + timeout_seconds="60"> + <method_context> + <method_credential user="root" group="staff"/> + </method_context> + </exec_method> + + <exec_method type="method" name="restart" exec=":kill" timeout_seconds="60"> + <method_context> + <method_credential user="root" group="staff"/> + </method_context> + </exec_method> + + <exec_method type="method" name="stop" exec=":kill" timeout_seconds="60"> + <method_context> + <method_credential user="root" group="staff"/> + </method_context> + </exec_method> + + <property_group name="startd" type="framework"> + <propval name="ignore_error" type="astring" value="core,signal"/> + </property_group> + + <property_group name="application" type="application"> + </property_group> + + <stability value="Evolving"/> + + <template> + <common_name> + <loctext xml:lang="C">Ur Agent (node)</loctext> + </common_name> + </template> + + </service> + +</service_bundle> |
