xref: /onnv-gate/usr/src/cmd/ndmpd/svc-ndmp (revision 7917:5c4442486198)
1*7917SReza.Sabdar@Sun.COM#! /usr/bin/ksh
2*7917SReza.Sabdar@Sun.COM#
3*7917SReza.Sabdar@Sun.COM# Copyright 2008 Sun Microsystems, Inc.  All rights reserved.
4*7917SReza.Sabdar@Sun.COM# Use is subject to license terms.
5*7917SReza.Sabdar@Sun.COM#
6*7917SReza.Sabdar@Sun.COM
7*7917SReza.Sabdar@Sun.COM#
8*7917SReza.Sabdar@Sun.COM# BSD 3 Clause License
9*7917SReza.Sabdar@Sun.COM#
10*7917SReza.Sabdar@Sun.COM# Copyright (c) 2007, The Storage Networking Industry Association.
11*7917SReza.Sabdar@Sun.COM#
12*7917SReza.Sabdar@Sun.COM# Redistribution and use in source and binary forms, with or without
13*7917SReza.Sabdar@Sun.COM# modification, are permitted provided that the following conditions
14*7917SReza.Sabdar@Sun.COM# are met:
15*7917SReza.Sabdar@Sun.COM# 	- Redistributions of source code must retain the above copyright
16*7917SReza.Sabdar@Sun.COM#	  notice, this list of conditions and the following disclaimer.
17*7917SReza.Sabdar@Sun.COM#
18*7917SReza.Sabdar@Sun.COM# 	- Redistributions in binary form must reproduce the above copyright
19*7917SReza.Sabdar@Sun.COM#	  notice, this list of conditions and the following disclaimer in
20*7917SReza.Sabdar@Sun.COM#	  the documentation and/or other materials provided with the
21*7917SReza.Sabdar@Sun.COM#	  distribution.
22*7917SReza.Sabdar@Sun.COM#
23*7917SReza.Sabdar@Sun.COM#	- Neither the name of The Storage Networking Industry Association (SNIA)
24*7917SReza.Sabdar@Sun.COM#	  nor the names of its contributors may be used to endorse or promote
25*7917SReza.Sabdar@Sun.COM#	  products derived from this software without specific prior written
26*7917SReza.Sabdar@Sun.COM#	  permission.
27*7917SReza.Sabdar@Sun.COM#
28*7917SReza.Sabdar@Sun.COM# THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS"
29*7917SReza.Sabdar@Sun.COM# AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE
30*7917SReza.Sabdar@Sun.COM# IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE
31*7917SReza.Sabdar@Sun.COM# ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE
32*7917SReza.Sabdar@Sun.COM# LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR
33*7917SReza.Sabdar@Sun.COM# CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF
34*7917SReza.Sabdar@Sun.COM# SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS
35*7917SReza.Sabdar@Sun.COM# INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
36*7917SReza.Sabdar@Sun.COM# CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE)
37*7917SReza.Sabdar@Sun.COM# ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE
38*7917SReza.Sabdar@Sun.COM# POSSIBILITY OF SUCH DAMAGE.
39*7917SReza.Sabdar@Sun.COM#
40*7917SReza.Sabdar@Sun.COM. /lib/svc/share/smf_include.sh
41*7917SReza.Sabdar@Sun.COM
42*7917SReza.Sabdar@Sun.COMif [ -f /usr/lib/ndmp/ndmpd ]; then
43*7917SReza.Sabdar@Sun.COM	/usr/lib/ndmp/ndmpd 2>&1 &
44*7917SReza.Sabdar@Sun.COM	exit 0
45*7917SReza.Sabdar@Sun.COMelse
46*7917SReza.Sabdar@Sun.COM	exit $SMF_EXIT_ERR_CONFIG
47*7917SReza.Sabdar@Sun.COMfi
48