[Author Prev][Author Next][Thread Prev][Thread Next][Author Index][Thread Index]
[tor-relays] Re: Tor automatic start
- To: tor-relays@xxxxxxxxxxxxxxxxxxxx
- Subject: [tor-relays] Re: Tor automatic start
- From: William Denton <william@xxxxxxxxxxxxxxxxx>
- Date: Mon, 02 Dec 2024 15:20:31 +0000
- Feedback-id: 95794763:user:proton
- In-reply-to: <CADqUGAOuh90VbrRcpskEP0i7LoTRxiLDaQmzOo+KvDdW3aK=mA@mail.gmail.com>
- List-id: "support and questions about running Tor relays (exit, non-exit, bridge)" <tor-relays.lists.torproject.org>
- References: <CADqUGAOuh90VbrRcpskEP0i7LoTRxiLDaQmzOo+KvDdW3aK=mA@mail.gmail.com>
- Reply-to: tor-relays@xxxxxxxxxxxxxxxxxxxx
On Sunday, December 1st, 2024 at 14:15, Keifer Bly <keifer.bly@xxxxxxxxx> wrote:
> So on Debain 12, is there a way to configure tor to start automatically when the os boots? Thanks.
One way is to use the @reboot time in a cron job. If you run
crontab -e
you can edit your list of cron jobs and add in something like
@reboot /path/to/tor
Mine looks like this:
SHELL=/bin/bash
@reboot ~/conforg/scripts/tor-run.sh
The script that gets run is here:
https://github.com/wdenton/conforguration/blob/master/conforg/scripts/tor-run.sh
It sets up a tmux session with four windows: one running Tor, one tailing the log, one showing a bar chart of bandwidth use, and one a shell where I can run a report of bandwidth use. Combined, if the machine reboots then thirty seconds after it comes back Tor is running and I can run `tmux attach` to check in on it, then or weeks later.
Bill
--
William Denton
https://www.miskatonic.org/
Librarian, artist and licensed private investigator.
Toronto, Canada
_______________________________________________
tor-relays mailing list -- tor-relays@xxxxxxxxxxxxxxxxxxxx
To unsubscribe send an email to tor-relays-leave@xxxxxxxxxxxxxxxxxxxx