[tor-relays] Tor automatic start

Hi,

So on Debain 12, is there a way to configure tor to start automatically when the os boots? Thanks.

–Keifer

So on Debain 12, is there a way to configure tor to start
automatically when the os boots? Thanks.

If you've installed Tor from the repositories it will install a systemd
.service and it should be enabled by default.

Check the status of tor.service :

$ systemctl status tor

Enable the service on start :

$ systemctl enable tor

···

_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org

Do you mean something like, `systemctl enable tor`?

···

On Sun Dec 1, 2024 at 8:15 PM CET, Keifer Bly wrote:

Hi,

So on Debain 12, is there a way to configure tor to start automatically
when the os boots? Thanks.

--Keifer

_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org

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:

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

···

On Sunday, December 1st, 2024 at 14:15, Keifer Bly <keifer.bly@gmail.com> wrote:

So on Debain 12, is there a way to configure tor to start automatically when the os boots? Thanks.

--
William Denton

Librarian, artist and licensed private investigator.
Toronto, Canada

_______________________________________________
tor-relays mailing list -- tor-relays@lists.torproject.org
To unsubscribe send an email to tor-relays-leave@lists.torproject.org

Thanks all.

···

–Keifer