Koozali.org: home of the SME Server

Help -Undo failed mt-daapd startup script? Redo correct?

gizmo911uk

Help -Undo failed mt-daapd startup script? Redo correct?
« on: October 29, 2005, 09:13:25 PM »
Hi,

Just installed itunes server on my SME server, i tried to create a startup script by doing the following (from looking at other startup scripts):

Quote
#/sbin/e-smith/config set mt-daapd service Initscriptorder 95 status enabled


Code: [Select]
#ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S95mt-daapd

this doesn't work, i still have to manual start mt-daapd, so how do i undo what i did above.

Also how do i create a proper startup script because at the minute i have to manual command the following to startup the itunes server:

Quote
#/etc/rc.d/init.d/mt-daapd start


and the following for the songs to show up:

Code: [Select]
#mDNSProxyResponderPosix 192.168.0.2 smeserver "Music Jukebox" _daap._tcp. 3689 &

many thanks in advance

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Re: Help -Undo failed mt-daapd startup script? Redo correct?
« Reply #1 on: October 29, 2005, 09:59:46 PM »
Quote from: "gizmo911uk"
Hi,

Just installed itunes server on my SME server, i tried to create a startup script by doing the following (from looking at other startup scripts):

Quote
#/sbin/e-smith/config set mt-daapd service Initscriptorder 95 status enabled



Initscriptorder is long obsolete - it does nothing.

Quote

Code: [Select]
#ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S95mt-daapd

this doesn't work,


If you want someone to help you, you'll need to give a better description of "doesn't work".

Quote

i still have to manual start mt-daapd, so how do i undo what i did above.


rm /etc/rc.d/rc7.d/S95mt-daapd
/sbin/e-smith/config delete mt-daapd

Quote

Also how do i create a proper startup script because at the minute i have to manual command the following to startup the itunes server:

Quote
#/etc/rc.d/init.d/mt-daapd start



That *should* be exactly what happened when you made the changes that you did...

Quote

and the following for the songs to show up:

Code: [Select]
#mDNSProxyResponderPosix 192.168.0.2 smeserver "Music Jukebox" _daap._tcp. 3689 &


Maybe that is the step you were missing. We can't tell you, because you didn't tell us what "doesn't work" means to you.

gizmo911uk

Help -Undo failed mt-daapd startup script? Redo correct?
« Reply #2 on: October 30, 2005, 02:40:13 AM »
Sorry about being unclear the last time.

I'll start again.

My aim was to get itunes to run at startup. so with a bit of searchin throughout the forum, i thought that by issuing these 2 commands, modified to suit mt-daapd, would do the job nicely.

Code: [Select]
#/sbin/e-smith/config set mt-daapd service Initscriptorder 95 status enabled

#ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S95mt-daapd


After i had done that i rebooted both my SME server and my pc. I then loaded up itunes on my pc to see if i was able to play my shared music. This was not the case, there was no shared music detected.

I then issued the command to start mt-daapd:
Code: [Select]
#/etc/rc.d/init.d/mt-daapd start

But still my shared music did not show up in itunes, so i then issued the command:
Code: [Select]
#mDNSProxyResponderPosix 192.168.0.2 smeserver "Music Jukebox" _daap._tcp. 3689 &

And success, my shared music showed up in itunes.


I was then wanting to undo the first 2 commands i issued, now done by:
Code: [Select]
#rm /etc/rc.d/rc7.d/S95mt-daapd
#/sbin/e-smith/config delete mt-daapd

Thanks

I am now asking how do i correctly get mt-daapd/itunes server to start on boot so my shared music automatically appears?

Please let me know if i am still unclear, would like to get this all workin. Manuy Thanks

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Help -Undo failed mt-daapd startup script? Redo correct?
« Reply #3 on: October 30, 2005, 02:43:12 AM »
Quote from: "gizmo911uk"

I then issued the command to start mt-daapd:
Code: [Select]
#/etc/rc.d/init.d/mt-daapd start

But still my shared music did not show up in itunes,


That is not surprising, because the earlier steps you had taken had already done exactly the same. You do not want to undo those steps (except that Initscriptorder is not required or useful).

Quote

 so i then issued the command:
Code: [Select]
#mDNSProxyResponderPosix 192.168.0.2 smeserver "Music Jukebox" _daap._tcp. 3689 &

And success, my shared music showed up in itunes.


As I said before, this is the step that was missing. You need to have something which starts the mDNSProxyResponderPosix process. Start here:

http://the.taoofmac.com.nyud.net:8090/space/HOWTO/Enable%20Rendezvous%20on%20Fedora%20Linux

and then set up a config database entry for rendezvous and an e-smith-service symlink for rendezvous as well.

gizmo911uk

Help -Undo failed mt-daapd startup script? Redo correct?
« Reply #4 on: November 01, 2005, 09:07:30 PM »
sorry if i come across a bit thick here but really don't know anything about linux, i do read up on it but things still are very unclear to me.

First of i deleted my first attempt at a start up script by doing, as you said;
rm /etc/rc.d/rc7.d/S95mt-daapd
/sbin/e-smith/config delete mt-daapd

You also said "Initscriptorder is long obsolete - it does nothing."

So what is the correct command i need to issue to startup mt-daapd?

Is it just:
#ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S95mt-daapd

Offline CharlieBrady

  • *
  • 6,918
  • +3/-0
Help -Undo failed mt-daapd startup script? Redo correct?
« Reply #5 on: November 01, 2005, 09:42:14 PM »
Quote from: "gizmo911uk"

Is it just:
#ln -s /etc/rc.d/init.d/e-smith-service /etc/rc.d/rc7.d/S95mt-daapd


No, it's:

ln -s /etc/rc.d/init.d/e-smith-service etc/rc.d/rc7.d/S95mt-daapd
/sbin/e-smith/config set mt-daapd service status enabled

And you also need to do something to start
mDNSProxyResponderPosix.

gizmo911uk

Help -Undo failed mt-daapd startup script? Redo correct?
« Reply #6 on: November 01, 2005, 11:37:16 PM »
When i issue the command:
[root@smeserver root]# ln -s /etc/rc.d/init.d/e-smith-service etc/rc.d/rc7.d/S95mt-daapd

I get the following:
ln: creating symbolic link etc/rc.d/rc7.d/S95mt-daapd' to /etc/rc.d/init.d/e-smith-service': No such file or directory


And its the same when i issue;
[root@smeserver root]# /sbin/e-smith/config set mt-daapd service status enabled

I get this in return;
bash: /sbin/e-smith/config: No such file or directory


What am i doing wrong?