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