Date: Wed, 27 Oct 1999 23:04:13 +0200 From: Roelof Osinga <roelof@nisser.com> To: questions@FreeBSD.ORG Subject: Re: Starting the Samba Service Message-ID: <381768CD.AA6C03EF@nisser.com> References: <85256816.001EB07E.00@mail.whtz.com> <3815456A.54313A86@lvdi.net> <000601bf1f6b$8dc4a620$0607b084@fernunihagen.de>
next in thread | previous in thread | raw e-mail | index | archive | help
Fritz Heinrichmeyer wrote:
>
> Install samba from the ports collection or from a precompiled package.
> Then you will find /usr/local/etc/rc.d/samba.sh.example. It is an example
> startup script.
> If you rename it to /usr/local/etc/rc.d/samba.sh, it is fired up on every
> reboot.
Yeah, but I found I had to change it thus:
#!/bin/sh
# mutilated from samba.sh.sample
smbspool=/var/spool/samba
pidfiledir=/var/run
smbd=/usr/local/sbin/smbd
nmbd=/usr/local/sbin/nmbd
# start
#if [ "x$1" = "x" -o "x$1" = "xstart" ]; then
if [ -f $smbd ]; then
if [ -d $smbspool ]; then
rm -f $smbspool/*
fi
echo -n ' Samba'
$smbd -D
$nmbd -D
fi
# stop
#elif [ "x$1" = "xstop" ]; then
# kill `cat $pidfiledir/smbd.pid`
# kill `cat $pidfiledir/nmbd.pid`
#fi
Roelof
PS I believe it was because the parameters weren't given
--
Home is where the (@) http://eboa.com/ is.
To Unsubscribe: send mail to majordomo@FreeBSD.org
with "unsubscribe freebsd-questions" in the body of the message
Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?381768CD.AA6C03EF>
