Super User is a question and answer site for computer enthusiasts and power users. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

On PClinuxOS 2010 I use SMB4K to manage LAN shares. It works perfectly, unless I forget to quit SMB4K before shutting down the computer. If I forget, AND a mounted network share has gone offline, the shutdown procedure always hangs. Shutdown complains that it cannot unmount my Home directory as it is busy. This is obviously related to SMB4K (which mounts LAN shares within Home) as shutdown proceeds uneventfully when I have quitted SMB4K prior to shutdown. | have found that 'killing' SMB4K leaves LAN shares mounted, whereas 'quitting' leads to shares being unmounted before its process ends. My scripting knowledge is almost nil, but I'm wondering if a line within the /etc/rc.d/init.d/halt script might be the answer. If so, how can the halt script be told to 'quit' SMB4K instead of 'killing' it?

share|improve this question

killall -s QUIT SMB4KProcessName...

share|improve this answer
    
Alas, killall -s QUIT smb4k does nothing! I don't see why, because RedGrittyBrick's logic is sound and thanks for it. – John Lawrence Apr 8 '11 at 20:55

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .