-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA512
Hi,
I'm running multiple tor instances on a single host as part of an
ansible role [1] for tor relay operators.
Since OpenBSD's tor package does not come with multi-instance support
[2] I simply copy/link /etc/rc.d/tor for every additional instance.
I'd like to use <IP>_<port> as an instance identifier, but that is not
working:
# cd /etc/rc.d/
# cp tor tor1.2.3.4_22
# rcctl enable tor1.2.3.4_22
/usr/sbin/rcctl: ${tor1.2.3.4_22_flags}": bad substitution
Looking through some manuals I found rc.subr(8):
> Apart from a few notable exceptions, rc scripts must follow this
> naming policy:
>
> 1. Use the same name as the daemon it is referring to. 2.
> Dashes (`-') have to be converted to underscores (`_').
Replacing the dots with underscores works fine:
# cp tor tor1_2_3_4_22
# rcctl enable tor1_2_3_4_22
Should the manpage also mention:
3. Dots have to be converted to underscores
or is this a bug?
thanks,
Nusenu
I'm using an OpenBSD snapshot from 2015-04-02.
[1] https://github.com/nusenu/ansible-relayor
[2]
https://lists.torproject.org/pipermail/tor-relays/2015-April/006742.html
-----BEGIN PGP SIGNATURE-----
iQIcBAEBCgAGBQJVIE4ZAAoJEFv7XvVCELh0u7UP/24U0E3IYED6lZK2EQ54oxZ6
KP/wkAFj0/TfwML37LlzQdPMNXnnbu04JdJO1+etLcbPyda3xXWnNY9NwQPXV1Lg
MaUlYD3E8nQM1poAhA26JE+VYtw6ySUMcJO1xh946wZGQSnzYIJ0CCpMsk4rwDnx
Onc80UsZ34IMiSEZx83Qk8vzLHSP9y1SdmwzmLNj/Q3MLAJ/00uWT6d39JQnMT0a
6dghGLGu2gmwll0NLv8J4utXiRlcPozCDNHMg7RN6vOEhj7AHCYMzjMdhU1LYSCR
E6ekBjAeDoTw6ojaJW/0UvDVCqdtBg6HByJQ3uuoEYJAjUAYNDR4A+5VdWuYPr/6
8oYXMeMtP3sIBoh5mHyVQz/YB1TIyJ1l2sT1250KwVRAsjxLLYZ/GYJySAHplc94
PFjoFoNZkNmxW9ecbpuNVzlS8IgOBwuxuYVZa6QbHnSiaKMAGmiXT7QhWO02NYNP
97I36I++Uqn8ZxMWRbfYJAid5uxVa3ZXtVYYNmKdAqpxRNzQS29XvgZHLcV8pTHH
KHYJdWKdlfq40HTD7+5KqtlqwREXub5i05VfMtLpyKSRF6s+VCe16GZnaLUEhEFP
QAopbCKSfyh+1ZUV/LPqNp+y77Xw3xaloBtVbx6jB/lg57GCip14b0bkWZ2QEeqI
QN9E6nNEl9gGOXG+qSx5
=z9A6
-----END PGP SIGNATURE-----