#!/usr/sbin/sh # # Copyright (c) 2008, 2011, Oracle and/or its affiliates. All rights reserved. # # # Start/stop client SMB service # . /lib/svc/share/smf_include.sh result=${SMF_EXIT_OK} case "$1" in 'start') # Start the main smbiod service /usr/lib/smbfs/smbiod-svc result=$? # Do smbfs mounts (background) /usr/bin/ctrun -l none \ /usr/sbin/mountall -F smbfs ;; 'stop') # First destroy the mounts, /usr/sbin/umountall -F smbfs # then kill the smbiod service. smf_kill_contract $2 TERM 1 result=$? ;; *) echo "Usage: $0 { start | stop }" result=1 ;; esac exit $result