How to start Tor only when network works in upstart framework?

Zack Cerza zcerza at redhat.com
Mon Mar 31 15:29:25 UTC 2008


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?


There is probably a better way, but checking the exit code of:

   nm-tool | grep -e 'Active.* yes'

might do what you want.

> BTW, when starting Tor I have to run "setenforce 0" then set to 1 when
> started. Is this only happening to me?
> 
> 
> Thanks!




More information about the fedora-devel-list mailing list