Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 437226 - net-misc/rygel - provide init scripts
Summary: net-misc/rygel - provide init scripts
Status: UNCONFIRMED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] GNOME (show other bugs)
Hardware: All Linux
: Normal enhancement (vote)
Assignee: Gentoo Linux Gnome Desktop Team
URL:
Whiteboard:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-10-04 19:47 UTC by bugs.gentoo
Modified: 2012-11-02 12:37 UTC (History)
0 users

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


Attachments
rygel conf.d and init.d scripts (rygel.tar.gz,638 bytes, application/x-gzip)
2012-10-04 19:47 UTC, bugs.gentoo
Details

Note You need to log in before you can comment on or make changes to this bug.
Description bugs.gentoo 2012-10-04 19:47:00 UTC
Created attachment 325676 [details]
rygel conf.d and init.d scripts

Hello,

i'd like to run rygel on my headless server.
As there are no init scripts provided, i've copied mediatomb's init and config script. Rygel is running fine with this scripts.
See attachment.
Please enhance them (i'm no script guru) and add them to the ebuild.

i'm using rygel 0.14.3

Thx
Comment 1 Gilles Dartiguelongue (RETIRED) gentoo-dev 2012-10-05 22:21:08 UTC
Rygel is not meant to be run as a system daemon. Doing so you will stop it from using a dbus session bus and for example integration to tracker at the very least.

I have been request this at least once but I don't really want to support this option since it clearly is not upstream intent.

FTR, I'm running rygel in a regular user env with a little python script [1] I wrote to start an XDG compliant session and I really enjoy having all my media indexed mostly once and for all.

[1] https://github.com/EvaSDK/shell-session
Comment 2 Sander Sweers 2012-11-01 03:42:03 UTC
(In reply to comment #1)
> Rygel is not meant to be run as a system daemon. Doing so you will stop it
> from using a dbus session bus and for example integration to tracker at the
> very least.
> 
> I have been request this at least once but I don't really want to support
> this option since it clearly is not upstream intent.

My script/conf.d file are fairly similar to the attached with the exception I allow some arbitrary command line options to be added like transmission does.

> FTR, I'm running rygel in a regular user env with a little python script [1]
> I wrote to start an XDG compliant session and I really enjoy having all my
> media indexed mostly once and for all.
> 
> [1] https://github.com/EvaSDK/shell-session

I'll try out the python script and see how it works for me.

Could you share a bit how you set it up (reason below ;-))? 

I'll try to get something documented on wiki.gentoo.org. Would you be willing to  accept a patch to the ebuild that refers to the wiki page?
Comment 3 Sander Sweers 2012-11-01 14:56:22 UTC
The wiki page https://wiki.gentoo.org/wiki/Rygel is up with a draft of the setup I have with an init script. I hope to add the shell-session option eva suggested in the next couple of days.
Comment 4 Sander Sweers 2012-11-02 12:37:17 UTC
(In reply to comment #1)
> Rygel is not meant to be run as a system daemon. Doing so you will stop it
> from using a dbus session bus and for example integration to tracker at the
> very least.

Adding tracker support brings in over 120 packages (basically much of gnome and X) which I really am not prepared to do on this headless machine.

> I have been request this at least once but I don't really want to support
> this option since it clearly is not upstream intent.

They provide a sysv, upstart and systemd file [2], so I guess they do support running as a daemon.

> FTR, I'm running rygel in a regular user env with a little python script [1]
> I wrote to start an XDG compliant session and I really enjoy having all my
> media indexed mostly once and for all.
> 
> [1] https://github.com/EvaSDK/shell-session

Running the script from a "standard" user env does create a dbus session and starts rygel but it ends +/- 10 seconds later with no output. Any suggestion?

[2] http://git.gnome.org/browse/rygel/tree/examples/service?h=rygel-0-16