Start and Stop Samba
My wish is to start Samba when the network card is inserted or when power resumes.
And stop Samba before standby, or if the network card is removed, as it was done by cardmgr and /etc/pcmcia/network script.
I have added this in net.agent:
unregister)
exec /etc/init.d/smb stop
;;
and got this:
Sep 5 17:06:27 bcv66vbb /etc/hotplug/pci.agent: PCI remove event not supported Sep 5 17:06:27 bcv66vbb smb: smbd shutdown failed Sep 5 17:06:28 bcv66vbb smb: nmbd shutdown failed
What is wrong ?
For smb start, I do not see any error message, but smb is not started
What should be the correct method ?
-------------------------------------------------------
This sf.net email is sponsored by: OSDN - Tired of that same old cell phone? Get a new here for FREE!
https://www.inphonic.com/r.asp?r=sourceforge1&refcode1=vs3390
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
[email protected]
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel