hi all, I noticed that when I upgraded from Samba 2.0.7 (redhat 7.0) to samba 2.2.1a I lost this nice little script that came with redhat to start and stop the samba server. I would type in /usr/sbin/samba start and get a response like... /usr/sbin/smbd start (OK) /usr/sbin/nmbd start (OK) I liked that...does any one have a substitute that I could use for 2.2.1a? Thanks Carl Engstrom
Get used to the fact that RH installs smbd and all its other files in various places, to make central administation of all daemons rational. When you install samba from source, everything (AFAIK) goes into /usr/local/samba. So, here is all I use to start my daemons. case "$1" in start) killall smbd killall nmbd /usr/local/samba/bin/smbd -D /usr/local/samba/bin/nmbd -D ;; stop) killall smbd killall nmbd ;; reload) kill -SIGHUP `cat /var/lock/samba/smbd.pid` kill -SIGHUP `cat /var/lock/samba/nmbd.pid` ;; *) echo Usage: echo start stop reload ;; esac exit 0 This seems to work for my Caldera box and may even work for your RH box. The file in RH 7.1 to replace is: /etc/rc.d/init.d/smb Now, if you like adventure, you could try to edit the smb startup script to point to your programs. The easiest way to do that would be to install symbolic links which the RH startup script can find and point those links to your current binaries, lock files, log files, etc. But, I wouldn't bother, unless you like getting all those nice green OK's at startup! Joel On Fri, Oct 12, 2001 at 06:17:12PM -0400, Engstrom_Carl@emc.com wrote:> hi all, > > I noticed that when I upgraded from Samba 2.0.7 (redhat 7.0) to samba 2.2.1a > I lost this nice little script that came with redhat to start and stop the > samba server. > > I would type in /usr/sbin/samba start and get a response like... > > /usr/sbin/smbd start (OK) > /usr/sbin/nmbd start (OK) > > I liked that...does any one have a substitute that I could use for 2.2.1a?
Use service smb start or service smb restart or service smb stop. This will effect both smb and nmb. Steve Helder ----- Original Message ----- From: <Engstrom_Carl@emc.com> To: <samba@lists.samba.org> Sent: Friday, October 12, 2001 6:17 PM Subject: Samba restart> hi all, > > I noticed that when I upgraded from Samba 2.0.7 (redhat 7.0) to samba2.2.1a> I lost this nice little script that came with redhat to start and stop the > samba server. > > I would type in /usr/sbin/samba start and get a response like... > > /usr/sbin/smbd start (OK) > /usr/sbin/nmbd start (OK) > > I liked that...does any one have a substitute that I could use for 2.2.1a? > > Thanks > > > Carl Engstrom > > -- > To unsubscribe from this list go to the following URL and read the > instructions: http://lists.samba.org/mailman/listinfo/samba
Hi, I start to use Samba with difficulties for now but I just blame me I have the following problem when I change my smb.conf I reload or restart Samba but most of the time my changes are not available I have to reboot my server is there anything special to do? Thanks Raymond
Dude, it's UNIX/Linux. You should never reboot ;) That's not normal. Did you try to stop the service and start it again, like so: samba stop samba start and not samba restart Are you sure the daemons are dead after issueing a samba stop. ------------------------ Raymond Gree <raymond@grenet.org> wrote: ------------------------ Hi,>I start to use Samba with difficulties for now but I just blame me >I have the following problem when I change my smb.conf I reload or >restart Samba but most of the time my changes are not available >I have to reboot my server >is there anything special to do? >Thanks >Raymond > >-- >To unsubscribe from this list go to the following URL and read the >instructions: http://lists.samba.org/mailman/listinfo/samba
kenneth.westelinck@pandora.be wrote:>Dude, it's UNIX/Linux. You should never reboot ;) >That's not normal. Did you try to stop the service and start it again, like so: >samba stop >samba start >and not >samba restart > >Are you sure the daemons are dead after issueing a samba stop. > >------------------------ > Raymond Gree <raymond@grenet.org> wrote: >------------------------ >Hi, > > >>I start to use Samba with difficulties for now but I just blame me >>I have the following problem when I change my smb.conf I reload or >>restart Samba but most of the time my changes are not available >>I have to reboot my server >>is there anything special to do? >>Thanks >>Raymond >> >>-- >>To unsubscribe from this list go to the following URL and read the >>instructions: http://lists.samba.org/mailman/listinfo/samba >> >> > > > >I did it also but same result. how can I verify that the deamon is dead (ps -A)?