hero...@gentoo.org writes: > Ritesh Raj Sarraf <r...@researchut.com> writes: > >> On Tuesday 21 October 2014 01:35 PM, Ritesh Raj Sarraf wrote: >>> tor |/lib/rc/sh/runscript.sh: 274: exec: /bin/bash: >>> not found >>> tor | * ERROR: tor failed to start >> >> The tor service works if the init script interpreter is changed from >> /bin/bash to /bin/sh, with /bin/sh symlinking to /bin/dash > > This seems to be a bug of tor.
I don't agree. After talking some with the folks on #openrc, I think this problem is caused by the shebang line at the top of the tor initscript: > #! /bin/bash and inparticular that it has a space. (Looking at line 274 gives the location of the exec; tracing through the file says that SHELLBANG is set to " /bin/bash", and `exec " /bin/bash"` fails). It was suggested that this might be fixed in a newer version of openrc (specifically, at or before 0.13.6, since in that version the references to shebang have disappeared), but I do not have the ability to test that right now.
signature.asc
Description: PGP signature