summaryrefslogtreecommitdiff
path: root/net/samba/files/smbd.sh
blob: a253a8292a3a61f9bcbbb983e43638b71fcfa9ad (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: smbd.sh,v 1.11 2005/11/14 08:05:27 jlam Exp $
#
# PROVIDE: smbd
# REQUIRE: nmbd

. /etc/rc.subr

name="smbd"
rcvar=$name
command="@PREFIX@/sbin/${name}"
required_vars="nmbd"
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 $name
load_rc_config_var nmbd nmbd
run_rc_command "$1"