Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 532182 - net-misc/mediatomb - install systemd service file
Summary: net-misc/mediatomb - install systemd service file
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: Current packages (show other bugs)
Hardware: All Linux
: Normal normal (vote)
Assignee: Ian Whyman (thev00d00) (RETIRED)
URL:
Whiteboard:
Keywords:
Depends on:
Blocks: install-systemd-unit
  Show dependency tree
 
Reported: 2014-12-10 19:17 UTC by David Carlos Manuelda
Modified: 2014-12-12 14:08 UTC (History)
2 users (show)

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 David Carlos Manuelda 2014-12-10 19:17:32 UTC
In Gentoo, current mediatomb ebuild (tested 0.12.2_pre20140810), do not provide any .service file to be started with systemd.

I've seen that other distros are putting the service file, and also I found one on http://gentoo-en.vfose.ru/wiki/Systemd#Mediatomb but I am having problems with it (it takes too long for systemctl stop mediatomb.service, for example and it is not detected in my tv until I manually run it).

Can anyone look at this and provide the service file?

Reproducible: Always
Comment 1 David Carlos Manuelda 2014-12-12 13:06:32 UTC
Update: it was my fault on the config file. The provided mediatomb service file works with no problems
Comment 2 David Carlos Manuelda 2014-12-12 13:06:52 UTC
*provided=proposed in first post
Comment 3 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2014-12-12 13:18:42 UTC
Can you try these:

https://github.com/v00d00/mediatomb/tree/gentoo/scripts/systemd

let know how you get on.
Comment 4 David Carlos Manuelda 2014-12-12 13:28:20 UTC
(In reply to Ian Whyman (thev00d00) from comment #3)
> Can you try these:
> 
> https://github.com/v00d00/mediatomb/tree/gentoo/scripts/systemd
> 
> let know how you get on.

I've tested your proposed file.
While it works (I tested only the non mysql version), it completelly ignores what it is set in /etc/conf.d/mediatomb, for example, the log file option.
Comment 5 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2014-12-12 13:54:55 UTC
(In reply to David Carlos Manuelda from comment #4)
>
> I've tested your proposed file.
> While it works (I tested only the non mysql version), it completelly ignores
> what it is set in /etc/conf.d/mediatomb, for example, the log file option.

It is supposed to, it logs to the systemd journal instead (or whatever the systemd log target you have set). Using values from /etc/conf.d also triggers a QA Warning[1].

1. https://wiki.gentoo.org/wiki/Project:Systemd/conf.d_files
Comment 6 David Carlos Manuelda 2014-12-12 13:56:18 UTC
(In reply to Ian Whyman (thev00d00) from comment #5)
> (In reply to David Carlos Manuelda from comment #4)
> >
> > I've tested your proposed file.
> > While it works (I tested only the non mysql version), it completelly ignores
> > what it is set in /etc/conf.d/mediatomb, for example, the log file option.
> 
> It is supposed to, it logs to the systemd journal instead (or whatever the
> systemd log target you have set). Using values from /etc/conf.d also
> triggers a QA Warning[1].
> 
> 1. https://wiki.gentoo.org/wiki/Project:Systemd/conf.d_files

Ok, I did not know that, it is good for me then, can it be included to tree?.
Comment 7 Ian Whyman (thev00d00) (RETIRED) gentoo-dev 2014-12-12 14:08:45 UTC
+  12 Dec 2014; Ian Whyman <thev00d00@gentoo.org>
+  +mediatomb-0.12.2_pre20141212.ebuild, -mediatomb-0.12.2_pre20140810.ebuild:
+  Install systemd units