[Samba] samba restart

kenneth westelinck kenneth.westelinck at pandora.be
Sat Jun 7 06:11:51 GMT 2003


On Linux I always use 'ps fax'
On SunOS I always us 'ps -ef'
This should give you a list of all processes running. If the list is to big,
just pipe it to grep: ps fax | grep nmbd and ps fax | grep smbd. If you're
alsoe using winbindd, don't forget to grep for that as well. There's a
similar thread going on in the list called "stability". If you need decent
scripts. it might help poking around in the "stability" thread. This is a
script kindly taken from Joel Hammer ;)

-8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<--
#!/bin/bash
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 /usr/local/samba/var/locks/smbd.pid`
 kill -SIGHUP `cat /usr/local/samba/var/locks/nmbd.pid`
 ;;
 *)
 echo Usage:
 echo start stop reload
 ;;
esac
exit 0
-8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<---8<--

The location for your pid files and binaries might be different though.

----- Original Message ----- 
From: "Raymond Gree" <raymond at grenet.org>
To: <kenneth.westelinck at pandora.be>
Cc: <samba at lists.samba.org>
Sent: Friday, June 06, 2003 10:31 PM
Subject: Re: [Samba] samba restart


> kenneth.westelinck at 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 at 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)?
>
>
>
>




More information about the samba mailing list