I want to run two instances of dnscrypt client proxies, but I'm having trouble making them automatically start at boot. Here is what I tried:
rc.local, this is the first:
/usr/local/sbin/dnscrypt-proxy -a 127.0.0.1:40 -u _dnscrypt-proxy -d -l /dev/null -R dnscrypt.eu-dk
and the second:
/usr/local/sbin/dnscrypt-proxy2 -a 127.0.0.1:41 -u _dnscrypt-proxy2 -d -l /dev/null -R dnscrypt.org-fr
/usr/local/sbin and did a
cp dnscrypt-proxy dnscrypt-proxy2 and then when I rebooted I would get
[ERROR] Unknown User : [dnscrypt-proxy2].
Then I searched and saw this question then I manually edited
/etc/passwd and added a new user carefully copying the default
_dnscrypt-proxy user and changed the id, as now it has these 2 entries:
_dnscrypt-proxy:*688:688:dnscrypt-proxy user:/var/empty:/sbin/nologin _dnscrypt-proxy2:*689:689:dnscrypt-proxy2 user:/var/empty:/sbin/nologin`
And when I reboot, the Unknown User error still persists. A quick
ls on the folder shows me I do have duplicated the folder.
Ps aux shows me the daemon has not started. A Google search didn't help me so I turned to the Linux experts here. My OS is OpenBSD 5.7.