Fedora Linux Support Community & Resources Center
  #1  
Old 24th August 2011, 01:07 PM
trojanfoe Offline
Registered User
 
Join Date: Mar 2008
Posts: 18
linuxchrome
F15: Cannot start mediatomb (systemd)

Hi there, I am trying to start mediatomb, however it won't run (not in 'ps' listing) but no error messages or log files are generated. If I add 'set -x' to /etc/init.d/mediatomb I don't see any additional output when using 'service mediatomb start' and, in fact, I don't see any of the output from echo statements in the init.d file either. Does systemd suppress output from /etc/init.d files? Is there a way of getting additional info when trying to start a service?

Attached are my /etc/mediatomb.conf and /etc/mediatomb/config.xml files (I know the config.xml file is OK as I've been using it for years on previous machines).

Cheers,
Andy
Attached Files
File Type: conf mediatomb.conf (688 Bytes, 106 views)
File Type: txt config.xml.txt (6.4 KB, 101 views)
Reply With Quote
  #2  
Old 17th October 2011, 11:19 AM
trojanfoe Offline
Registered User
 
Join Date: Mar 2008
Posts: 18
linuxchrome
Re: F15: Cannot start mediatomb (systemd)

I finally managed to get this working by explicitly turning off the use of systemctl/systemd from within /etc/init.d/mediatomb by setting the following environment variable before including /etc/rc.d/init.d/functions:

Code:
SYSTEMCTL_SKIP_REDIRECT=1
If this variable is not set then systemctl tries to start 'mediatomb.service' which it seems to think has succeeded. , even though it doesn't exist.
Reply With Quote
  #3  
Old 17th October 2011, 11:45 AM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,820
linuxfedorafirefox
Re: F15: Cannot start mediatomb (systemd)

Success from systemd's point of view is the exit status of the script.

If it exits with a 0, systemd assumes it started normally.
Reply With Quote
  #4  
Old 17th October 2011, 01:19 PM
trojanfoe Offline
Registered User
 
Join Date: Mar 2008
Posts: 18
linuxchrome
Re: F15: Cannot start mediatomb (systemd)

Why is systemctl/systemd even involved with mediatomb when all the functionality to start and stop it is within /etc/init.d/mediatomb?
Reply With Quote
  #5  
Old 17th October 2011, 06:00 PM
jpollard Offline
Registered User
 
Join Date: Aug 2009
Location: Waldorf, Maryland
Posts: 6,820
linuxfedorafirefox
Re: F15: Cannot start mediatomb (systemd)

Because that is what the systemd developers decided.

systemd tries to do everything - inetd, system initialization, process monitoring, process restart, system shutdown, network monitoring...

And in my opinion misses the boat. It looses logs, it overintegrates all system functioning into a monolithic blob making it hard to operate non-systemd processes.

Last edited by jpollard; 17th October 2011 at 06:02 PM.
Reply With Quote
Reply

Tags
f15, mediatomb, start, systemd

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Mediatomb + WMP12 marverix Using Fedora 9 26th July 2011 10:28 AM
mediatomb: where have you been (ps3 streaming)? tja1618 Reviews, Rants & Things That Make You Scream 1 8th September 2010 01:32 PM
Mediatomb 0.12 help pstrang Using Fedora 11 15th July 2010 05:33 AM
mediatomb transcoding to PS3 hiberphoptik Using Fedora 2 13th January 2009 03:16 AM
Any mediatomb and Ps3 users out there. sophosrex Using Fedora 5 12th February 2008 04:01 PM


Current GMT-time: 14:17 (Friday, 29-08-2014)

TopSubscribe to XML RSS for all Threads in all ForumsFedoraForumDotOrg Archive
logo

All trademarks, and forum posts in this site are property of their respective owner(s).
FedoraForum.org is privately owned and is not directly sponsored by the Fedora Project or Red Hat, Inc.

Privacy Policy | Term of Use | Posting Guidelines | Archive | Contact Us | Founding Members

Powered by vBulletin® Copyright ©2000 - 2012, vBulletin Solutions, Inc.

FedoraForum is Powered by RedHat