summaryrefslogtreecommitdiff
path: root/net/ja-samba/files/smbd.sh
blob: c5b420c15b1ed74dd294adf680af9b72ceb9e008 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
#!@RCD_SCRIPTS_SHELL@
#
# $NetBSD: smbd.sh,v 1.3 2005/06/19 18:38:40 taca Exp $
#
# PROVIDE: smbd
# REQUIRE: DAEMON

if [ -f /etc/rc.subr ]; then
	. /etc/rc.subr
fi

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}

if [ -f /etc/rc.subr ]; then
	load_rc_config $name
	run_rc_command "$1"
else
	@ECHO@ -n " ${name}"
	${command} ${smbd_flags} ${command_args}
fi