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
Update: it was my fault on the config file. The provided mediatomb service file works with no problems
*provided=proposed in first post
Can you try these: https://github.com/v00d00/mediatomb/tree/gentoo/scripts/systemd let know how you get on.
(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.
(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
(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?.
+ 12 Dec 2014; Ian Whyman <thev00d00@gentoo.org> + +mediatomb-0.12.2_pre20141212.ebuild, -mediatomb-0.12.2_pre20140810.ebuild: + Install systemd units