Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 392453 - sys-process/runit-2.1.1: sv cannot chdir to /service
Summary: sys-process/runit-2.1.1: sv cannot chdir to /service
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Core system (show other bugs)
Hardware: All Linux
: Normal normal
Assignee: Gentoo's Team for Core System packages
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2011-11-29 19:27 UTC by Marc Schiffbauer
Modified: 2011-11-30 00:20 UTC (History)
0 users

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Marc Schiffbauer gentoo-dev 2011-11-29 19:27:17 UTC
Running "sv <some options>" only reports an error because it cannot chdir the original service directory /service:

fail: foo: unable to change to service directory: file does not exist

Maybe sv needs to be patched to use /var/service and not /service for gentoo.

Here is what it does:

lisa ~ # strace -trace=file -Ff sv restart foo
[...]
     0.000290 chdir("/service/") = -1 ENOENT (No such file or directory)
     0.000257 write(1, "fail: foo: unable to change to"..., 72fail: foo: unable to change to service directory: file does not exist
) = 72
     0.000414 fchdir(3) = 0
     0.000361 exit_group(1) = ?
lisa ~ #
Comment 1 SpanKY gentoo-dev 2011-11-29 22:14:07 UTC
runit has been a proxy-maintained package.  make whatever changes you want.
Comment 2 Marc Schiffbauer gentoo-dev 2011-11-30 00:20:45 UTC
(In reply to comment #1)
> runit has been a proxy-maintained package.  make whatever changes you want.

I added 2.2.1-r1 to fix this bug as well as another one (missing /sbin/svrundir-start)