Subject: Re: /etc/rc.d source of boottime breakage?
To: Laine Stump <lainestump@rcn.com>
From: Urban Boquist <boquist@crt.se>
List: current-users
Date: 03/15/2000 10:24:56
>>>>> Laine Stump writes:

Laine> figure out where to put the startup for samba,

Below is what I put together, put it in /etc/rc.d/smbd (and then do a
"s/smbd/nmbd" and put that in /etc/rc.d/nmbd. Set "samba=YES" in
/etc/rc.local.conf.

And just for the record, I think the new rc.d system is really cool!

        -- Urban

#!/bin/sh
#
# PROVIDE: smbd
# REQUIRE: LOGIN

. /etc/rc.subr
. /etc/rc.conf

name="smbd"
rcvar="samba"
command="/usr/pkg/sbin/smbd"
command_args="-D"
pidfile="/var/run/samba/${name}.pid"
required_files="/etc/samba/smb.conf"

run_rc_command "$1"