Bug 5781 - Mac SqueezeCenter won't start at boot when 'Start At Boot' option selected
: Mac SqueezeCenter won't start at boot when 'Start At Boot' option selected
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Mac Preference Pane
: 7.0
: Macintosh MacOS X 10.5
: P2 major (vote)
: ---
Assigned To: Michael Herger
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2007-10-13 07:55 UTC by Ford Donald
Modified: 2009-09-08 09:32 UTC (History)
5 users (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ford Donald 2007-10-13 07:55:18 UTC
The current builds of SC 7.0a don't start up automatically when the Mac is booted, even when the 'Start At Boot' option is selected in the pref pane. Manually starting the server works properly.

Nightly build 10-13-07, PPC Mac mini
Comment 1 Ross Levine 2007-10-15 11:36:51 UTC
Steven do you have time to look at this?
Comment 2 Spies Steven 2007-10-15 12:03:01 UTC
I'll take a look.
Comment 3 Spies Steven 2007-10-16 13:07:35 UTC
I am seeing the same behavior on Mac OS X 10.5 as well.  'Automatically start: When I log in' still works however.

Michael, is this one for you?
Comment 4 Michael Herger 2007-10-18 06:25:54 UTC
If only I knew a bit about the Mac installer... I'm sorry, I haven't even found out where the installer code is. I'll have to see with Dean.
Comment 5 Spies Steven 2007-10-18 10:59:01 UTC
Just wanted to comment that "Automatically start: When I log in" still works for me.

Dean, who should get this one?
Comment 6 Michael Herger 2007-10-18 11:15:16 UTC
Dean, if you could brief me on the Mac installer, I could have a look at it. But for now I'm completely lost in the dozens of source files.
Comment 7 Blackketter Dean 2007-10-18 13:21:26 UTC
Happy to.  The prefpane code that is relevant here is in ServerPref.m, which calls create-startup.sh and remove-startup.sh to actually create the necessary boot-time startup item.  ServerPref.pm also modifies the AutoLaunchedApplicationDictionary to enable/disable the login-time launching.  Check out that file and the accompanying scripts.

Comment 8 Spies Steven 2007-10-24 09:09:19 UTC
Is this one for you Michael?
Comment 9 Blackketter Dean 2007-10-24 09:36:09 UTC
Steven:  Is this happening on 10.4 and 10.5 or just 10.5?
Comment 10 Spies Steven 2007-10-24 09:46:13 UTC
Dean, I will try again on both 10.4 and 10.5 with the nightly and report back.
Comment 11 Spies Steven 2007-10-24 10:33:36 UTC
It looks like this only 10.5 and I changed the OS drop down to indicate this.  If anyone has this problem with 10.3 or 10.4 please let us know.
Comment 12 Spies Steven 2007-10-24 10:52:38 UTC
Checking against SC 6.5.5 nightly.
Comment 13 Spies Steven 2007-10-24 11:29:35 UTC
This feature is broken with SC 6.5.5 nightly in Mac OS X 10.5 as well.  Increasing severity and changing target.
Comment 14 Spies Steven 2007-10-24 16:21:13 UTC
I just tried again with the latest build (9A559) of Mac OS X 10.5 and still the same behavior.
Comment 15 Blackketter Dean 2007-10-26 13:56:13 UTC
Just to be clear, Ford, are you seeing this on 10.5, 10.4 or 10.3?

Comment 16 Ford Donald 2007-10-27 09:00:24 UTC
OK, just checked with last night's build (10-27), and behavior on v10.4.10 appears to be OK. SC was a slow starter on Mac OS for a while (took 2-3 minutes to get going) so maybe that's what I saw.

Currently, last night build is starting properly ay boot, as set. I'll upgrade this server to 10.5 soon, and we'll see if things change.
Comment 17 Michael Herger 2007-10-29 06:41:37 UTC
Change 14170 is removing the --logfile  parameter from the startup script as it's legacy and breaking on Leopard. Please give the next nightly build a try.
Comment 18 James Rome 2007-10-29 08:08:13 UTC
I get this also with Leopard.
Comment 19 Michael Herger 2007-10-29 09:59:31 UTC
Some more data about this issue...
On startup SC7 has permissions issues creating Log and other folders:

29.10.07 17:31:08 com.apple.SystemStarter[17] Starting SqueezeCenter 
29.10.07 17:31:08 com.apple.SystemStarter[17] /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server / 
29.10.07 17:31:08 com.apple.SystemStarter[17] mkdir: /var/root/Library/Logs: Permission denied 
29.10.07 17:31:09 com.apple.SystemStarter[17] mkdir /var/root/Library: Permission denied at /Library/PreferencePanes/SqueezeCenter.prefPane/Contents/server/Slim/Utils/OSDetect.pm line 416 
29.10.07 17:31:09 com.apple.SystemStarter[17] BEGIN failed--compilation aborted at ./slimserver.pl line 115. 

Even though the startup script is run using "sudo -u someuser" $ENV{HOME} expands to /var/root instead of /Users/someuser
Comment 20 Michael Herger 2007-10-30 03:39:22 UTC
Change 14187 fixes this for trunk: added -H to sudo to set HOME. don't know why it worked with 10.4...
Comment 21 Michael Herger 2007-10-30 04:27:32 UTC
Change 14188 - same fix for 6.5.5