Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!

Bug 560144

Summary: Incorrect openrc init script in media-tv/mythtv-0.27.5_p20150904
Product: Gentoo Linux Reporter: Neil Bothwick <neil>
Component: Current packagesAssignee: Doug Goldstein (RETIRED) <cardoe>
Status: RESOLVED DUPLICATE    
Severity: normal CC: bkohler
Priority: Normal    
Version: unspecified   
Hardware: All   
OS: Linux   
Whiteboard:
Package list:
Runtime testing required: ---
Attachments: Diff for /etc/init.d/mythbackend

Description Neil Bothwick 2015-09-10 15:00:47 UTC
Created attachment 411552 [details, diff]
Diff for /etc/init.d/mythbackend

The init script has a couple of errors. The first, mythv instead of mythtv as the user given to checkpath, causes an error. The second is that the user passed to mythbackend is mythtv:video, not mythtv. This causes the init script to execute successfully but without starting mythtv.
Comment 1 Ben Kohler gentoo-dev 2015-09-10 15:35:16 UTC

*** This bug has been marked as a duplicate of bug 560142 ***
Comment 2 Doug Goldstein (RETIRED) gentoo-dev 2015-09-14 13:50:52 UTC
2 bugs.

1. start-stop-daemon man page shows --user takes user:group when it apparently does not work.
2. runscript man page shows the example of checkpath taking --dir and not --directory.
Comment 3 Doug Goldstein (RETIRED) gentoo-dev 2015-09-14 14:14:08 UTC
Neil:

Can you run the following as root on your machine:

start-stop-daemon --user mythtv:video --exec id

and provide the output?
Comment 4 Doug Goldstein (RETIRED) gentoo-dev 2015-09-14 14:16:25 UTC
(In reply to Doug Goldstein from comment #3)
> Neil:
> 
> Can you run the following as root on your machine:
> 
> start-stop-daemon --user mythtv:video --exec id
> 
> and provide the output?

nvm. I see the issue.
Comment 5 Doug Goldstein (RETIRED) gentoo-dev 2015-09-14 14:16:46 UTC

*** This bug has been marked as a duplicate of bug 560142 ***
Comment 6 Neil Bothwick 2015-09-14 22:50:55 UTC
The --user option is after a --, which I took to mean that the option is passed to the program being executed, not interpreted by start-stop-daemon. It is mythbackend that is objecting to the added group AFAICT.
Comment 7 Doug Goldstein (RETIRED) gentoo-dev 2015-09-15 01:03:43 UTC
(In reply to Neil Bothwick from comment #6)
> The --user option is after a --, which I took to mean that the option is
> passed to the program being executed, not interpreted by start-stop-daemon.
> It is mythbackend that is objecting to the added group AFAICT.

Correct. Which is why I had re-closed this bug as a duplicate and pushed a replacement ebuild to the tree. See bug #560142.