I just need to restart tor service at startup the script is simple as that :
#!/bin/bash
sudo service tor restart
But I want to execute it without taking my password at every startup.
I followed these posts : https://askubuntu.com/questions/425754/how-do-i-run-a-sudo-command-inside-a-script/425990
and I changed my sudoers file with this :
username ALL=(ALL) NOPASSWD: /path/to/script
But as I try to execute it in terminal, the script always ask me for password. I also try the others answers in this post but as that post as no validation I didn't find a solution. If someone have a solution ?
FoxyProxyinFirefox. For a reason I don't know I need to restartservice torif I want to load pages withFoxyProxyenabled by default. But if I understand the answer, myservice torstart one time and just after restart with my username and just allowed forservice tor. This could be another post.