linux-hotplug.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
From: Christian Gennerat <xgen@free.fr>
To: linux-hotplug@vger.kernel.org
Subject: Start and Stop Samba
Date: Thu, 05 Sep 2002 15:28:17 +0000	[thread overview]
Message-ID: <marc-linux-hotplug-103123996217559@msgid-missing> (raw)

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
Linux-hotplug-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/linux-hotplug-devel

             reply	other threads:[~2002-09-05 15:28 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-09-05 15:28 Christian Gennerat [this message]
  -- strict thread matches above, loose matches on Subject: below --
2002-11-21 20:58 Start and Stop Samba David Brownell

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-103123996217559@msgid-missing \
    --to=xgen@free.fr \
    --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).