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