[BACK]Return to smbd.sh CVS log [TXT][DIR] Up to [cvs.NetBSD.org] / pkgsrc / net / samba30 / files

File: [cvs.NetBSD.org] / pkgsrc / net / samba30 / files / Attic / smbd.sh (download)

Revision 1.1.1.1 (vendor branch), Thu Dec 15 22:23:24 2011 UTC (11 years, 3 months ago) by asau
Branch: TNF
CVS Tags: pkgsrc-base
Changes since 1.1: +0 -0 lines

Reimport Samba 3.0.37 from net/samba as net/samba30 as part of Samba packages rotation.

#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: smbd.sh,v 1.1.1.1 2011/12/15 22:23:24 asau Exp $
#
# PROVIDE: smbd

. /etc/rc.subr

name="smbd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
required_files="@SAMBA_ETCDIR@/smb.conf"
extra_commands="reload"
command_args="-D"		# _must_ start as daemon from rc.d;
				# add more flags through ${${name}_flags}

# load_rc_config_var() from /etc/rc.subr on the netbsd-3 branch, for
# the benefit of platforms with older versions of /etc/rc.subr.
#
load_rc_config_var()
{
	eval $(eval '(
		load_rc_config '$1' >/dev/null;
		if [ -n "${'$2'}" -o "${'$2'-UNSET}" != "UNSET" ]; then
			echo '$2'=\'\''${'$2'}\'\'';
		fi
	)' )
}

load_rc_config $name
load_rc_config_var nmbd nmbd
run_rc_command "$1"