Bug 9764 - SqueezeCenter init scripts issue warnings on Debian Lenny
: SqueezeCenter init scripts issue warnings on Debian Lenny
Status: CLOSED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Platform Support
: 7.3.0
: PC Debian Linux
: -- minor (vote)
: 7.x
Assigned To: Unassigned bug - please assign me!
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-10-20 06:55 UTC by Ben Sandee
Modified: 2009-07-31 10:30 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ben Sandee 2008-10-20 06:55:16 UTC
The SqueezeCenter init scripts issue warnings on install on Debian Lenny due to new LSB requirements:

Setting up squeezecenter (7.3~23623) ...
update-rc.d: warning: /etc/init.d/squeezecenter missing LSB information
update-rc.d: see <http://wiki.debian.org/LSBInitScripts>
Starting SqueezeCenter Audio Server.

Simply adding the following to /etc/init.d/squeezecenter resolves the issue:

### BEGIN INIT INFO
# Provides:          squeezecenter
# Required-Start:    $all
# Required-Stop:     $all
# Should-Start:      $all
# Should-Stop:       $all
# Default-Start:     2 3 4 5
# Default-Stop:      0 1 6
# Short-Description: web, slimproto media server
### END INIT INFO
Comment 1 Mark Miksis 2008-10-20 08:27:39 UTC
Is there a particular reason you want to start SC in runlevel 2?  Other than that, I'll add longer descriptions and fix this today.
Comment 2 Ben Sandee 2008-10-20 08:45:52 UTC
I copied this from the mediatomb (another media streaming application) startup script, so I didn't inspect it very carefully.

That said, my references indicate that 2-5 are various multi-user runlevels and 2 is the default.  What about runlevel 2 is it that you would not want it started?
Comment 3 Mark Miksis 2008-10-20 09:01:10 UTC
All networking is disabled in runlevel 2.

Fixed in change 23626 (7.3/trunk).  Please test tomorrow's nightly.
Comment 4 Ben Sandee 2008-10-20 09:03:56 UTC
Thanks for fixing it Fletch.

I think you're thinking of Redhat with respect to the runlevels.  Debian doesn't differentiate between runlevel 2-5 according to my research, and the default runlevel is 2.
Comment 5 Mark Miksis 2008-10-20 09:12:24 UTC
I stand corrected, thanks.  Looks like this was changed when they moved to upstart.

Change 23627 adds back runlevels 2 and 4.
Comment 6 Ben Sandee 2008-10-22 12:18:50 UTC
I can confirm this is fixed with the latest 7.3 nightlies.
Comment 7 James Richardson 2008-10-30 13:37:47 UTC
(In reply to comment #6)
> I can confirm this is fixed with the latest 7.3 nightlies.
> 

Marking bug as Fixed
Comment 8 James Richardson 2008-12-15 12:37:09 UTC
This bug has been fixed in the 7.3.0 release version of SqueezeCenter!

Please download the new version from http://www.slimdevices.com/su_downloads.html if you haven't already.  

If you are still experiencing this problem, feel free to reopen the bug with your new comments and we'll have another look.
Comment 9 Chris Owens 2009-07-31 10:30:59 UTC
Reduce number of active targets for SC