8e9d5fc761
Samba is the standard Windows interoperability suite of programs for Linux and Unix. Samba is Free Software licensed under the GNU General Public License, the Samba project is a member of the Software Freedom Conservancy. Since 1992, Samba has provided secure, stable and fast file and print services for all clients using the SMB/CIFS protocol, such as all versions of DOS and Windows, OS/2, Linux and many others. Samba is an important component to seamlessly integrate Linux/Unix Servers and Desktops into Active Directory environments. It can function both as a domain controller or as a regular domain member. This package tracks 4.x branch release.
33 lines
751 B
Bash
Executable file
33 lines
751 B
Bash
Executable file
#!@RCD_SCRIPTS_SHELL@
|
|
#
|
|
# $NetBSD: smbd.sh,v 1.1 2015/05/12 12:19:52 ryoon Exp $
|
|
#
|
|
# PROVIDE: smbd
|
|
|
|
. /etc/rc.subr
|
|
|
|
name="smbd"
|
|
rcvar=$name
|
|
command="@PREFIX@/sbin/${name}"
|
|
pidfile="@SMB_PID@/${name}.pid"
|
|
required_files="@SMB_CONFIG@/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"
|