The macosxhints Forums

The macosxhints Forums (http://hintsforums.macworld.com/index.php)
-   UNIX - Newcomers (http://hintsforums.macworld.com/forumdisplay.php?f=15)
-   -   startup routines (http://hintsforums.macworld.com/showthread.php?t=106858)

septicdeath 11-03-2009 01:59 AM

startup routines
 
I recently just installed Mediatomb wuth macports. I spent a couple of days fine tunning the ~/.mediatomb/config.xml and got everything working great to my PS3. I was running the app by dropping into terminal and manually initializing a ./mediatomb and everything was working great.

I started to tweak on the config to try to see what the DirecTv HD DVR could see, since on my UPNP network, I can see all my directv recievers. Some where along the line of updating mediatomb, trying to add bsd vlc and some other updates, I managed to make it so that mediatomb auto-starts with my system. Which is funny, because looking on the net, I see all kinds of automator scripts and other weird hacks trying to get the app to autostart, but somehow I've managed to get it to autorun, really no biggie except my machine wont sleep anymore.

I dont have any other users on my Mac except myself, and the changes I did to root, my machine uses directory services to my sbs2008 server if someone without a local account in the house wants to logon, so I havent tried creating a new account to see if the autostart of mediatomb is linked to my account, or to the system. (I guess I will do that next to find this out), but can someone identify what and all bsd scripts could have been edited to cause the mediatomb service to autostart.

Its not configured in the Sys Pref gui under login, so its doing it at a bsd/unix level.

Its not starting in my .login or my .profile, and nothing is within my /Library/StartupItems that shouldn't be. Its not within my /etc/rc.common, and Im at a loss,

anyone have any info or ideas that might help me. I guess I need to create a new account and see if autostarts at that logon, I suppose I could just reboot without logging in and see if my ps3 can see it, but my ps3 is at work right now.

Thanks in advance.

septicdeath 11-03-2009 02:12 AM

just created a new user, the daemon is still running, rebooted and didn't log in at all, and checked the ip of the mac on the port I configured for mediatomb and the server is running, so its something I did that is starting it as a service pre-logon, I'm used to know where all the bsd stuff autostarted, I seem to remember init.d and some rc folders, but its been a while, and well, I got all of you to help me remember.

Thanks in advance, just seems so strange that lots of the forums are filled with people not being able to get it to autostart, and I don't even know how I was able to do this. Anyways, my electricity bill really hopes we can figure it out so that my machine will goto sleep all night like it should. I remote to my box from work, so turning it all the way off will inherently lead to me needing to get onto it and a wakeonlan signal not bringing it up.

hayne 11-03-2009 09:31 AM

The following is a possibly incomplete/out-dated list of the mechanisms that can be used to run software at system startup:

1) The script /etc/rc and the sub-scripts it invokes (especially /etc/rc.local)

2) Launchd (files in /System/Library/LaunchDaemons and /Library/LaunchDaemons)

3) "@reboot" entries in /etc/crontab (and possibly also in per-user crontabs)

4) bundles in /System/Library/SystemConfiguration

5) scripts in /System/Library/StartupItems and /Library/StartupItems

6) kernel extensions in /System/Library/Extensions

7) entries in the file /Library/Preferences/com.apple.SystemLoginItems.plist (an undocumented mechanism)

8) plist files in /etc/mach_init.d or /etc/mach_init_per_user.d
(deprecated and possibly limited to certain "Apple-specific" items in 10.4, but will work generally in 10.3)

9) mount entries in /etc/fstab
(Can be used to mount filesystems which might trigger other software to run.)

See also Apple's developer docs on the system startup:
http://developer.apple.com/documenta...tup/index.html
----------------------

By the way, what version of OS X are you running? What model of Mac?

septicdeath 11-03-2009 07:29 PM

Mac Pro 8 core, Snow Leopard 10.6.1, sorry I forgot that the os might make a difference.

I will check the rc scripts, I just looked over rc.common, but now that you mention it, I just searched it for mediatomb, and didnt follow any other scripts it might be calling in.

septicdeath 11-03-2009 07:42 PM

I changed into each of those directories and ran a grep media * hoping to find it any of the files in those directories with no mediatomb entires, there were some media matches but they were for other programs.

Will continue to search.

WillyT 02-18-2011 07:20 PM

Hi

I'm trying to get mediatomb to work on 10.4.11.

Installed it with Fink and it runs and I have set it up with the web interface.

It is NOT running as a service and my Bravia tv doesnt see it. How do I get the service started?

Code:

willyt$ sudo service mediatomb restart
Password:
No such service mediatomb


WillyT 02-19-2011 12:24 PM

Found my problem was not spec-ing the network port en0 and MediaTomb used en1.

BUT now the Bravia tv says "The server does not support DLNA"

Maybe I'm doomed.

NovaScotian 02-19-2011 01:38 PM

Probably -- DLNA is an interoperability standard that includes digital property protection.


All times are GMT -5. The time now is 09:13 AM.

Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.
Site design © IDG Consumer & SMB; individuals retain copyright of their postings
but consent to the possible use of their material in other areas of IDG Consumer & SMB.