components/samba3oi/svc/wins.xml
changeset 212 705e1ace097b
equal deleted inserted replaced
182:fa48f2b6c9af 212:705e1ace097b
       
     1 <?xml version="1.0"?>
       
     2 <!--
       
     3 #
       
     4 # CDDL HEADER START
       
     5 #
       
     6 # The contents of this file are subject to the terms of the
       
     7 # Common Development and Distribution License (the "License").
       
     8 # You may not use this file except in compliance with the License.
       
     9 #
       
    10 # You can obtain a copy of the license at usr/src/OPENSOLARIS.LICENSE
       
    11 # or http://www.opensolaris.org/os/licensing.
       
    12 # See the License for the specific language governing permissions
       
    13 # and limitations under the License.
       
    14 #
       
    15 # When distributing Covered Code, include this CDDL HEADER in each
       
    16 # file and include the License file at usr/src/OPENSOLARIS.LICENSE.
       
    17 # If applicable, add the following below this CDDL HEADER, with the
       
    18 # fields enclosed by brackets "[]" replaced with your own identifying
       
    19 # information: Portions Copyright [yyyy] [name of copyright owner]
       
    20 #
       
    21 # CDDL HEADER END
       
    22 #
       
    23 -->
       
    24 <!DOCTYPE service_bundle SYSTEM "/usr/share/lib/xml/dtd/service_bundle.dtd.1">
       
    25 <!--
       
    26 	Copyright (c) 2006, 2010, Oracle and/or its affiliates. All rights reserved.
       
    27 
       
    28 	NOTE:  This service manifest is not editable; its contents will
       
    29 	be overwritten by package or patch operations, including
       
    30 	operating system upgrade.  Make customizations in a different
       
    31 	file.
       
    32 -->
       
    33 
       
    34 <service_bundle type='manifest' name='SUNWsmbar:wins'>
       
    35 
       
    36 <service name='network/wins' type='service' version='1'>
       
    37 
       
    38 	<create_default_instance enabled='false' />
       
    39 
       
    40 	<single_instance/>
       
    41 
       
    42 	<dependency name='net-loopback' grouping='require_any'
       
    43 			restart_on='none' type='service'>
       
    44 		<service_fmri value='svc:/network/loopback' />
       
    45 	</dependency>
       
    46 
       
    47 	<dependency name='net-service' grouping='require_all'
       
    48 			restart_on='none' type='service'>
       
    49 		<service_fmri value='svc:/network/service'/>
       
    50 	</dependency>
       
    51 
       
    52 	<dependency name='net-physical' grouping='require_all'
       
    53 			restart_on='none' type='service'>
       
    54 		<service_fmri value='svc:/network/physical' />
       
    55 	</dependency>
       
    56 
       
    57 	<dependency name='filesystem-local' grouping='require_all'
       
    58 			restart_on='none' type='service'>
       
    59 		<service_fmri value='svc:/system/filesystem/local' />
       
    60 	</dependency>
       
    61 
       
    62 	<dependent name='wins_multi-user-server' grouping='optional_all'
       
    63 			restart_on='none'>
       
    64 		<service_fmri value='svc:/milestone/multi-user-server' />
       
    65 	</dependent>
       
    66 
       
    67 	<exec_method type='method' name='start'
       
    68 		exec='/usr/sbin/nmbd -D'
       
    69 		timeout_seconds='60' />
       
    70 
       
    71 	<exec_method type='method' name='stop'
       
    72 		exec='/usr/bin/kill `cat /var/samba/locks/nmbd.pid`'
       
    73 		timeout_seconds='60' />
       
    74 
       
    75 	<stability value='Unstable' />
       
    76 
       
    77 	<template>
       
    78 		<common_name>
       
    79 			<loctext xml:lang='C'>
       
    80 			MS Win. domain naming daemon
       
    81 			</loctext>
       
    82 		</common_name>
       
    83 		<documentation>
       
    84 			<manpage title='nmbd' section='1m'
       
    85 			    manpath='/usr/share/man' />
       
    86 			<manpage title='smb.conf' section='4'
       
    87 			    manpath='/usr/share/man' />
       
    88 		</documentation>
       
    89 	</template>
       
    90 </service>
       
    91 
       
    92 </service_bundle>