Start Tor Service after another Service?

Kernels & Hardware, configuring network, installing services

Start Tor Service after another Service?

Postby dahai8 » 2017-04-12 01:41

I'm trying to get Tor to start after another service (openvpn.service), but in doing so, it just comes up "loaded, but inactive (dead)" ?
I must be doing something stupid.
Here's what I tried:
Code: Select all
sudo -s
cp   /run/systemd/generator.late/tor.service   /etc/systemd/system/tor.service
nano /etc/systemd/system/tor.service

Then added openvpn.service at the end of the After= line under the [Unit] section.
Rebooted, and Tor is just dead.
Probably a conflict between 'Before=' and 'After=' ?
dahai8
 
Posts: 5
Joined: 2017-04-12 01:38

Re: Start Tor Service after another Service?

Postby debiman » 2017-04-12 19:21

please post the complete content of all systemd units relevant to your problem, and what their state currently is (enabled or not).
User avatar
debiman
 
Posts: 1549
Joined: 2013-03-12 07:18

Re: Start Tor Service after another Service?

Postby dahai8 » 2017-04-15 08:16

Wouldn't that be like...everything??
How many levels deep do you want?
dahai8
 
Posts: 5
Joined: 2017-04-12 01:38

Re: Start Tor Service after another Service?

Postby debiman » 2017-04-15 12:43

debiman wrote:content of all systemd units relevant to your problem

i meant the units' config files, i.e. usually *.service files.

and their current states, i.e.
Code: Select all
systemctl status XXX.service
systemctl is-enabled XXX.service


and since you yourself said "tor after openvpn", well those 2 surely are relevant.
User avatar
debiman
 
Posts: 1549
Joined: 2013-03-12 07:18


Return to System configuration

Who is online

Users browsing this forum: No registered users and 4 guests

fashionable