DNSCrypt at launch [SOLVED]
First time posting on the forum so I apologize if I leave out anything. I recently installed dnscrypt for Fedora and it is working fine. But I have to start it with the /usr/sbin/dnscrypt-proxy –daemonize command. I would ike to automate this. If I enter it in the terminal everything runs fine. However if I create a rc.local file that looks like this my boot process locks up on the fedora logo. I then have to use a live disk to delete rc.local to boot properly.
So my question is how can I get this command to run at boot. I am using linux to learn more about computers so I am willing to try any method, I just need pointed in the right direction. I made sure to run systemctl enable rc-local.service but recieve the following error: "The unit files have no [Install] section. They are not meant to be enabled using systemctl"
When I run systemctl status rc-local.service I recieve the following output:
rc-local.service - /etc/rc.d/rc.local Compatibility
Loaded: loaded (/usr/lib/systemd/system/rc-local.service; static)
Active: inactive (dead)
If I remove exit 0 from rc.local I get the same result.
When Fedora is booting if I hit F2 I can see that everything is getting the green [ ok ] except.
[FAILED] Failed to start LSB: init script for TCSD
[FAILED] Failed to start A Perl Client Used To Update Dynamic DNS
the lockup occurs at
[ok] Started Cleanup of Temporary Directories
*****Okay I made some more headway*******
I switched to arch and used the same script in rc.local, what happened is the service did start however the start up stopped after the service started. Just like when you launch firefox in the terminal by just typing firefox and cannot type any commands after it. What I did on arch was I just added & after /usr/sbin/dnscrypt-proxy –daemonize. Now everything is working here is an example of the working script (again this was on arch):
/usr/sbin/dnscrypt-proxy –daemonize &
Last edited by SRA223; 19th July 2012 at 09:28 PM.
Reason: Additional information