xref: /titanic_41/usr/src/cmd/syseventd/sysevent.xml (revision 6a634c9dca3093f3922e4b7ab826d7bdf17bf78e)
17c478bd9Sstevel@tonic-gate<?xml version="1.0"?>
27c478bd9Sstevel@tonic-gate<!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
37c478bd9Sstevel@tonic-gate<!--
4*f6e214c7SGavin Maltby Copyright (c) 2004, 2010, Oracle and/or its affiliates. All rights reserved.
57c478bd9Sstevel@tonic-gate
67c478bd9Sstevel@tonic-gate CDDL HEADER START
77c478bd9Sstevel@tonic-gate
87c478bd9Sstevel@tonic-gate The contents of this file are subject to the terms of the
9*f6e214c7SGavin Maltby Common Development and Distribution License (the "License").
10*f6e214c7SGavin Maltby You may not use this file except in compliance with the License.
117c478bd9Sstevel@tonic-gate
127c478bd9Sstevel@tonic-gate You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
137c478bd9Sstevel@tonic-gate or http://www.opensolaris.org/os/licensing.
147c478bd9Sstevel@tonic-gate See the License for the specific language governing permissions
157c478bd9Sstevel@tonic-gate and limitations under the License.
167c478bd9Sstevel@tonic-gate
177c478bd9Sstevel@tonic-gate When distributing Covered Code, include this CDDL HEADER in each
187c478bd9Sstevel@tonic-gate file and include the License file at usr/src/OPENSOLARIS.LICENSE.
197c478bd9Sstevel@tonic-gate If applicable, add the following below this CDDL HEADER, with the
207c478bd9Sstevel@tonic-gate fields enclosed by brackets "[]" replaced with your own identifying
217c478bd9Sstevel@tonic-gate information: Portions Copyright [yyyy] [name of copyright owner]
227c478bd9Sstevel@tonic-gate
237c478bd9Sstevel@tonic-gate CDDL HEADER END
247c478bd9Sstevel@tonic-gate
257c478bd9Sstevel@tonic-gate	NOTE:  This service manifest is not editable; its contents will
267c478bd9Sstevel@tonic-gate	be overwritten by package or patch operations, including
277c478bd9Sstevel@tonic-gate	operating system upgrade.  Make customizations in a different
287c478bd9Sstevel@tonic-gate	file.
297c478bd9Sstevel@tonic-gate
307c478bd9Sstevel@tonic-gate	Service manifest for syseventd.
317c478bd9Sstevel@tonic-gate-->
327c478bd9Sstevel@tonic-gate
337c478bd9Sstevel@tonic-gate<service_bundle type='manifest' name='SUNWcsd:syseventd'>
347c478bd9Sstevel@tonic-gate
357c478bd9Sstevel@tonic-gate<service
367c478bd9Sstevel@tonic-gate	name='system/sysevent'
377c478bd9Sstevel@tonic-gate	type='service'
387c478bd9Sstevel@tonic-gate	version='1'>
397c478bd9Sstevel@tonic-gate
407c478bd9Sstevel@tonic-gate	<create_default_instance enabled='true' />
417c478bd9Sstevel@tonic-gate
427c478bd9Sstevel@tonic-gate	<single_instance />
437c478bd9Sstevel@tonic-gate
447c478bd9Sstevel@tonic-gate	<dependency
457c478bd9Sstevel@tonic-gate	    name='usr'
467c478bd9Sstevel@tonic-gate	    grouping='require_all'
477c478bd9Sstevel@tonic-gate	    restart_on='none'
487c478bd9Sstevel@tonic-gate	    type='service'>
497c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/system/filesystem/minimal' />
507c478bd9Sstevel@tonic-gate	</dependency>
517c478bd9Sstevel@tonic-gate
527c478bd9Sstevel@tonic-gate	<dependent
537c478bd9Sstevel@tonic-gate		name='syseventd_single-user'
547c478bd9Sstevel@tonic-gate		grouping='require_all'
557c478bd9Sstevel@tonic-gate		restart_on='none'>
567c478bd9Sstevel@tonic-gate		<service_fmri value='svc:/milestone/single-user' />
577c478bd9Sstevel@tonic-gate	</dependent>
587c478bd9Sstevel@tonic-gate
59*f6e214c7SGavin Maltby	<!--
60*f6e214c7SGavin Maltby		The fmd service exists in all Solaris zones, but only
61*f6e214c7SGavin Maltby		in the global zone (which syseventd is defined in) should
62*f6e214c7SGavin Maltby		it be dependent on this service.
63*f6e214c7SGavin Maltby	-->
64*f6e214c7SGavin Maltby	<dependent
65*f6e214c7SGavin Maltby		name='syseventd-fmd'
66*f6e214c7SGavin Maltby		grouping='require_all'
67*f6e214c7SGavin Maltby		restart_on='none'>
68*f6e214c7SGavin Maltby		<service_fmri value='svc:/system/fmd' />
69*f6e214c7SGavin Maltby	</dependent>
70*f6e214c7SGavin Maltby
717c478bd9Sstevel@tonic-gate	<exec_method
727c478bd9Sstevel@tonic-gate	    type='method'
737c478bd9Sstevel@tonic-gate	    name='start'
747c478bd9Sstevel@tonic-gate	    exec='/lib/svc/method/svc-syseventd %m'
757c478bd9Sstevel@tonic-gate	    timeout_seconds='60' />
767c478bd9Sstevel@tonic-gate
777c478bd9Sstevel@tonic-gate	<exec_method
787c478bd9Sstevel@tonic-gate	    type='method'
797c478bd9Sstevel@tonic-gate	    name='stop'
807c478bd9Sstevel@tonic-gate	    exec='/lib/svc/method/svc-syseventd %m %{restarter/contract}'
817c478bd9Sstevel@tonic-gate	    timeout_seconds='60' />
827c478bd9Sstevel@tonic-gate
837c478bd9Sstevel@tonic-gate	<stability value='Unstable' />
847c478bd9Sstevel@tonic-gate
857c478bd9Sstevel@tonic-gate	<template>
867c478bd9Sstevel@tonic-gate	    	<common_name>
877c478bd9Sstevel@tonic-gate		    	<loctext xml:lang='C'>
887c478bd9Sstevel@tonic-gate				system event notification
897c478bd9Sstevel@tonic-gate			</loctext>
907c478bd9Sstevel@tonic-gate		</common_name>
917c478bd9Sstevel@tonic-gate
927c478bd9Sstevel@tonic-gate		<documentation>
937c478bd9Sstevel@tonic-gate		    	<manpage
947c478bd9Sstevel@tonic-gate			    title='syseventd'
957c478bd9Sstevel@tonic-gate			    section='1M'
967c478bd9Sstevel@tonic-gate			    manpath='/usr/share/man' />
977c478bd9Sstevel@tonic-gate		</documentation>
987c478bd9Sstevel@tonic-gate	</template>
997c478bd9Sstevel@tonic-gate</service>
1007c478bd9Sstevel@tonic-gate
1017c478bd9Sstevel@tonic-gate</service_bundle>
102