I'm fiddling with the various configuration files to try and get Samba working - after making changes to various files I end up rebooting [shudder] the box to get the settings to take. I invoke the smbd, and nmbd binaries from a root bash command line, each with the "-D" option. I can't seem to send a "kill SIGHUP" command to the PID I read from a "ps -ex" command because I get the message "bash: kill: SIGHUP: no such pid". Can someone give me a time saving tip? - Jamie
"Jamie Risk" <jamie_risk@yahoo.ca> wrote in message news:avupuf$6h6$1@main.gmane.org...> I'm fiddling with the various configuration files to try and get Samba > working - after making changes to various files I end up rebooting[shudder]> the box to get the settings to take. > > I invoke the smbd, and nmbd binaries from a root bash command line, each > with the "-D" option. I can't seem to send a "kill SIGHUP" command to the > PID I read from a "ps -ex" command because I get the message "bash: kill: > SIGHUP: no such pid". > > Can someone give me a time saving tip? > - Jamieps aux | grep smb kill -9 PID ps aux | grep nmb kill -9 PID Or just make a script for stop/start/restart :) Shaolin ***************************************************************** This email has been checked by the altohiway e-Sweeper Service *****************************************************************
On Mon, Jan 13, 2003 at 11:37:54AM -0500, Jamie Risk wrote:> I invoke the smbd, and nmbd binaries from a root bash command line, each > with the "-D" option. I can't seem to send a "kill SIGHUP" command to the > PID I read from a "ps -ex" command because I get the message "bash: kill: > SIGHUP: no such pid"."kill SIGHUP <pid>" is the wrong syntax. You want "kill -HUP <pid>". Or you can just wait a few minutes, current versions of Samba are supposed to check the config file for changes. All UNIX signal names are "SIG<name>", to send them to a process by signal name you use "kill -<name> <pid>", without the "SIG". -- Michael Heironimus
-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Mon, 13 Jan 2003, Gareth Davies wrote:> ps aux | grep smb > > kill -9 PID > > ps aux | grep nmb > > kill -9 PID > > Or just make a script for stop/start/restart :)Better to use the -TERM signal and let Samba gracefully shutdown. cheers, jerry ---------------------------------------------------------------------- Hewlett-Packard ------------------------- http://www.hp.com SAMBA Team ---------------------- http://www.samba.org GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed "You can never go home again, Oatman, but I guess you can shop there." --John Cusack - "Grosse Point Blank" (1997) -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.2.0 (GNU/Linux) Comment: For info see http://quantumlab.net/pine_privacy_guard/ iD8DBQE+JYlnIR7qMdg1EfYRAuOrAJ9wxcNiMqhhvgZ0zR1NOi7QWTV3JACcD9s5 r2WBc251k9BEcboeJSw/ZwY=vrhY -----END PGP SIGNATURE-----
My distro (Mandrake) comes with a series of scripts which do this for ALL of the services. If I wanted to restart my samba server I would change to the superuser and just type: service smb restart[enter] Gerald (Jerry) Carter wrote:> -----BEGIN PGP SIGNED MESSAGE----- > Hash: SHA1 > > On Mon, 13 Jan 2003, Gareth Davies wrote: > > >>ps aux | grep smb >> >>kill -9 PID >> >>ps aux | grep nmb >> >>kill -9 PID >> >>Or just make a script for stop/start/restart :) > > > Better to use the -TERM signal and let Samba gracefully shutdown. > > > > > cheers, jerry > ---------------------------------------------------------------------- > Hewlett-Packard ------------------------- http://www.hp.com > SAMBA Team ---------------------- http://www.samba.org > GnuPG Key ---- http://www.plainjoe.org/gpg_public.asc > ISBN 0-672-32269-2 "SAMS Teach Yourself Samba in 24 Hours" 2ed > "You can never go home again, Oatman, but I guess you can shop there." > --John Cusack - "Grosse Point Blank" (1997) > > -----BEGIN PGP SIGNATURE----- > Version: GnuPG v1.2.0 (GNU/Linux) > Comment: For info see http://quantumlab.net/pine_privacy_guard/ > > iD8DBQE+JYlnIR7qMdg1EfYRAuOrAJ9wxcNiMqhhvgZ0zR1NOi7QWTV3JACcD9s5 > r2WBc251k9BEcboeJSw/ZwY> =vrhY > -----END PGP SIGNATURE----- >