How to start Tor only when network works in upstart framework?
Andrea Dell'Amico
adellam at sevenseas.org
Mon Mar 31 15:36:32 UTC 2008
On Mon, 2008-03-31 at 23:09 +0800, Yuan Yijun wrote:
> Hi,
>
> I use NetworkManager to connect to wifi network (WEP encrypted). Tor
> daemon should be started after connection established. Everyday I have
> to start Tor service manually. How to use upstart to do this?
Work for NetworkManagerDispatcher.
Put a script in /etc/NetworkManager/dispatcher.d.
Scripts are run before and after an interface change status, and they
are called with (at least, don't remember if there are others) two
arguments: $1 is the interface name, $2 is the interface status.
> Thanks!
>
> --
> bbbush ^_^
ciao
andrea
--
Andrea Dell'Amico - <http://www.link.it/>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 307 bytes
Desc: This is a digitally signed message part
URL: <http://listman.redhat.com/archives/fedora-devel-list/attachments/20080331/ff6ff370/attachment.sig>
More information about the fedora-devel-list
mailing list