9162 libpp: this statement may fall through
[unleashed.git] / usr / src / cmd / ndmpd / svc-ndmp
blob884dd8bd31b726067ae6b18569efa37c871f32bb
1 #! /usr/bin/ksh
3 # Copyright 2008 Sun Microsystems, Inc. All rights reserved.
4 # Use is subject to license terms.
8 # BSD 3 Clause License
10 # Copyright (c) 2007, The Storage Networking Industry Association.
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.
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.
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.
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.
40 . /lib/svc/share/smf_include.sh
42 if [ -f /usr/lib/ndmp/ndmpd ]; then
43 /usr/lib/ndmp/ndmpd 2>&1 &
44 exit 0
45 else
46 exit $SMF_EXIT_ERR_CONFIG