Date: Tue, 2 Jan 2001 17:06:57 -0800 From: David <davidd@datasphereweb.com> To: David Banning <david@banning.com> Cc: questions@freebsd.org Subject: Re: no samba with inetd start Message-ID: <20010102170656.A49769@datasphereweb.com> In-Reply-To: <20010102195957.A4104@www3.pacific-pages.com>; from david@www3.pacific-pages.com on Tue, Jan 02, 2001 at 07:59:58PM -0500 References: <20010102195957.A4104@www3.pacific-pages.com>
next in thread | previous in thread | raw e-mail | index | archive | help
On Tue, Jan 02, 2001 at 07:59:58PM -0500, David Banning wrote:
> I have recently installed samba. I seems to run fine
> when I run from the shell;
>
> $ smbd -D
> $ nmbd -D
>
> but when I run it by commenting out the entries in inetd.conf;
>
> netbios-ssn stream tcp nowait root /usr/local/sbin/sbbd smbd
> netbios-ns dgram udp wait root /usr/local/sbin/nmbd nmbd
>
> it won't run;
>
> any idea why?
I can't give you a reason why other then say "it won't work that way?" Speaking from experience
that is :)
Anyways, in your /usr/local/etc/rc.d create a samba.sh and put this in it:
#!/bin/sh
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
This works for me.
--
|> /\ \/ @
davidd@datasphereweb.com
DataSphere - Back end web programming, site security, and networking
david.daugherty@netmanage.com
Software Engineer
NetManage - The Bridge to E-Business
http://www.wcug.wwu.edu/~doc
ICQ: 21106703
"I like the dreams of the future better than the history of the past"
-Thomas Jefferson
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?20010102170656.A49769>
