Execute a command when the Linux starts
by Jason.nix from LinuxQuestions.org on (#6JHB6)
Hello,
I'm using Debian and want the command tor -f /etc/tor/torrc2 to run automatically when the system reboots. I tried the following two solutions:
Thank you.
I'm using Debian and want the command tor -f /etc/tor/torrc2 to run automatically when the system reboots. I tried the following two solutions:
- I created a file called Tor.sh in the /etc/init.d/ directory and put the desired command in it, and then using the chmod +x command, I turned it into executable mode.
- I put the command in the /etc/rc.local file.
Thank you.