Re: /etc/rc.d/dnscrypt_proxy(failed)

2016-05-12 Thread Stuart Henderson
On 2016/05/12 17:19, johnw wrote:
> On 05/12/2016 03:18 PM, Stuart Henderson wrote:
> > pgrep -lf dnscrypt
> 65727 /usr/local/sbin/dnscrypt-proxy -d --user=_dnscrypt-proxy -R
> dnscrypt.eu-nl --local-address=[::1]:53
> --resolver-address=176.56.237.171:443
> --provider-key=67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66
> 
> > rcctl get dnscrypt_proxy
> dnscrypt_proxy_class=dnscrypt_proxy
> dnscrypt_proxy_flags=-R dnscrypt.eu-nl --local-address=[::1]:53
...snip...

Oh the [ and ] are going to cause problems with the regexps.

I wonder if rc.subr should do something to escape those when it
sets the default value for pexp.



Re: /etc/rc.d/dnscrypt_proxy(failed)

2016-05-12 Thread johnw
On 05/12/2016 05:50 PM, Jiri B wrote:
> su -l -c daemon -s /bin/sh root -c "dnscrypt_proxy -R dnscrypt.eu-nl 
> --local-address=[::1]:53"
It can run normally.

Actually, /etc/rc.d/dnscrypt_proxy can start dnscrypt_proxy too,
But /etc/rc.d/dnscrypt_proxy will report failed, even dnscrypt_proxy
started as normally.

Thank you. 



signature.asc
Description: OpenPGP digital signature


Re: /etc/rc.d/dnscrypt_proxy(failed)

2016-05-12 Thread Jiri B
On Thu, May 12, 2016 at 05:19:35PM +0800, johnw wrote:
> On 05/12/2016 03:18 PM, Stuart Henderson wrote:
> > pgrep -lf dnscrypt
> 65727 /usr/local/sbin/dnscrypt-proxy -d --user=_dnscrypt-proxy -R
> dnscrypt.eu-nl --local-address=[::1]:53
> --resolver-address=176.56.237.171:443
> --provider-key=67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66
> 
> > rcctl get dnscrypt_proxy
> dnscrypt_proxy_class=dnscrypt_proxy
> dnscrypt_proxy_flags=-R dnscrypt.eu-nl --local-address=[::1]:53
> --resolver-address=176.56.237.171:443
> --provider-key=67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66
> dnscrypt_proxy_rtable=0
> dnscrypt_proxy_timeout=30
> dnscrypt_proxy_user=root
> 
> > cat /var/run/rc.d/dnscrypt_proxy (if it exists)
> Not exists
> 
> Thank you.
> 


Try to run it directly as rc.d does:

su -l -c daemon -s /bin/sh root -c "dnscrypt_proxy -R dnscrypt.eu-nl 
--local-address=[::1]:53"

Don't you miss '--user=_dnscrypt-proxy' and '-d' (daemonize) in flags?

j.



Re: /etc/rc.d/dnscrypt_proxy(failed)

2016-05-12 Thread johnw
On 05/12/2016 03:18 PM, Stuart Henderson wrote:
> pgrep -lf dnscrypt
65727 /usr/local/sbin/dnscrypt-proxy -d --user=_dnscrypt-proxy -R
dnscrypt.eu-nl --local-address=[::1]:53
--resolver-address=176.56.237.171:443
--provider-key=67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66

> rcctl get dnscrypt_proxy
dnscrypt_proxy_class=dnscrypt_proxy
dnscrypt_proxy_flags=-R dnscrypt.eu-nl --local-address=[::1]:53
--resolver-address=176.56.237.171:443
--provider-key=67C0:0F2C:21C5:5481:45DD:7CB4:6A27:1AF2:EB96:9931:40A3:09B6:2B8D:1653:1185:9C66
dnscrypt_proxy_rtable=0
dnscrypt_proxy_timeout=30
dnscrypt_proxy_user=root

> cat /var/run/rc.d/dnscrypt_proxy (if it exists)
Not exists

Thank you.



signature.asc
Description: OpenPGP digital signature


Re: /etc/rc.d/dnscrypt_proxy(failed)

2016-05-12 Thread Stuart Henderson
On 2016/05/12 13:19, johnw wrote:
> Hi,
> 
> I noticed (doas dmesg -s) /etc/rc.d/dnscrypt_proxy start failed on boot,
> But I can see the process is running and work as normal.
> 
> My system and package is amd64 running on current (today)
> 
> Any idea? 

Please show:

pgrep -lf dnscrypt
rcctl get dnscrypt_proxy
cat /var/run/rc.d/dnscrypt_proxy (if it exists)

Common failures with this port are failing to follow the pkg-readme and
set the upstream resolver, or having another process listening on port
53, but for those cases I wouldn't expect it to stay running.



/etc/rc.d/dnscrypt_proxy(failed)

2016-05-11 Thread johnw
Hi,

I noticed (doas dmesg -s) /etc/rc.d/dnscrypt_proxy start failed on boot,
But I can see the process is running and work as normal.

My system and package is amd64 running on current (today)

Any idea? 

-- 
Key ID: 0xCF2C80AC
Key fingerprint: CDB3 6C62 254B C088 1E5D DD32 182C 97DB CF2C 80AC




signature.asc
Description: OpenPGP digital signature