Operating System - HP-UX
1753838 Members
9386 Online
108806 Solutions
New Discussion юеВ

Samba - smbd stop and start problem

 
Mauro_8
Frequent Advisor

Samba - smbd stop and start problem

Hi,

I??m trouble with samba. When I sent the command "smbd stop" and then a "ps -fu root | grep smb" I saw "smbd stop" running forever and do not remove file smbd.pid. A similar problem happens when I send the command "smbd start", this process never die. I think the process that must be running continuosly is only smbd, it seens like samba is not starting and stopping correctly.

Any ideas ?

Cheers,
Mauro
11 REPLIES 11
Mauro_8
Frequent Advisor

Re: Samba - smbd stop and start problem

Just one more detail, I have no samba daemon (nmbd) running !?

Cheers,
Mauro
Arockia Jegan
Trusted Contributor

Re: Samba - smbd stop and start problem

It's strange. Can you kill the smbd process by "kill -9 " and start the smbd again? If you again face the same problem use "truss -p
benoit Bruckert
Honored Contributor

Re: Samba - smbd stop and start problem

Hi,
On my side, to start /stop smbd, I'm not do it in a clean way but it works :
to start , I just use smbd command, I m running also nmbd by hand...
To stop, I kill processes smbd + nmbd

I don't think that parameter start /stop is taken in account with smbd....

hope that help
BEnoit
Une application mal pans├йe aboutit ├а une usine ├а gaze (GHG)
Mauro_8
Frequent Advisor

Re: Samba - smbd stop and start problem

I do not have the truss command. I can kill the smbd process but the file smbd.pid still exists !?

It??s not good :-(

Regards,
Mauro
Arockia Jegan
Trusted Contributor

Re: Samba - smbd stop and start problem

Don't need to care about the smbd.pid file? When you again start the smbd process the process ID will be overwritten by the new process ID. You can even delete the file. The file will be recreated when you start the smbd.

You can find out truss/tusc software here,

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/tusc-7.3/
Mauro_8
Frequent Advisor

Re: Samba - smbd stop and start problem

Does truss command run under HP-UX 10.20 ?

Cheers,
Mauro
Arockia Jegan
Trusted Contributor

Re: Samba - smbd stop and start problem

As you have hpux 10.20 you can use trace software. You can use this link to download the trace software,

http://hpux.cs.utah.edu/hppd/hpux/Sysadmin/trace-1.6/

Trace is just like tusc package.
T G Manikandan
Honored Contributor

Re: Samba - smbd stop and start problem

You cannot use smbd start and smbd stop.

Just use

/smbd
/nmbd to start the daemons.

Also the nmbd process should be running so that you machine an be visible on the windows machine.

Use Kill -9 to kill the process.


Thanks
Mauro_8
Frequent Advisor

Re: Samba - smbd stop and start problem

Yeeessss !!!

It??s working fine :-)

Thanks all,
Mauro