From: David Brownell <david-b@pacbell.net>
To: linux-hotplug@vger.kernel.org
Subject: Re: Start and Stop Samba
Date: Thu, 21 Nov 2002 20:58:07 +0000 [thread overview]
Message-ID: <marc-linux-hotplug-103791226820308@msgid-missing> (raw)
Christian Gennerat wrote:
> 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.
Right now there are no hotplug events relating to power management,
though it might be a good idea to add that capability sometime.
However, events on device add/remove should work just fine.
> 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
Likely not to worry.
> 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 ?
Hmm, I'm not sure ... but shouldn't you also have added some logic
to start SMB after the "ifup"? I could easily believe that shutdown
failed because you never started it...
- Dave
-------------------------------------------------------
This sf.net email is sponsored by:ThinkGeek
Welcome to geek heaven.
http://thinkgeek.com/sf
_______________________________________________
Linux-hotplug-devel mailing list http://linux-hotplug.sourceforge.net
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel
next reply other threads:[~2002-11-21 20:58 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2002-11-21 20:58 David Brownell [this message]
-- strict thread matches above, loose matches on Subject: below --
2002-09-05 15:28 Start and Stop Samba Christian Gennerat
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=marc-linux-hotplug-103791226820308@msgid-missing \
--to=david-b@pacbell.net \
--cc=linux-hotplug@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).