[PKG-OpenRC-Debian] Bug#766151: Bug#766151: Bug#766151: openrc: tor service fails to start

Robbie Harwood rharwood at club.cc.cmu.edu
Wed Dec 24 09:53:45 UTC 2014


heroxbd at gentoo.org writes:

> Ritesh Raj Sarraf <rrs at 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.
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 818 bytes
Desc: not available
URL: <http://lists.alioth.debian.org/pipermail/openrc-devel/attachments/20141224/91273333/attachment-0001.sig>


More information about the OpenRC-devel mailing list