Bug 1492 - Slimserver fails to start when using Solaris 10 service framework
: Slimserver fails to start when using Solaris 10 service framework
Status: RESOLVED FIXED
Product: Logitech Media Server
Classification: Unclassified
Component: Misc
: 6.0.2
: PC Other
: P2 normal (vote)
: ---
Assigned To: Dan Sully
:
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2005-05-04 01:30 UTC by Lee Essen
Modified: 2011-03-16 04:34 UTC (History)
1 user (show)

See Also:
Category: ---


Attachments
Patch to fix the problem (644 bytes, patch)
2005-05-17 13:28 UTC, Max Spicer
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description Lee Essen 2005-05-04 01:30:08 UTC
When using the service management framework (instead of init.d) on Solaris 10
x86 the Slimserver daemon fails to start.

The log file shows:

 Unable to set effective group(s) to music (102) is: 102: No such file or directo
ry

Yet it's running as root so this shouldn't be a problem.

Investigation of the code and environment from within the SMF framework shows
that "$)" has only one entry and the match on line 973 of slimserver.pl fails
because of the requirement for a space.

if ($) !~ /^$gid /)  is wrong ... I would suggest...
if ("$) " !~ /^$gid /)  as a better approach.

Once this is done it works very well on Solaris 10 x86 (although you have to
build your own version of perl unless you have the Sun compiler ... otherwise
you can't build the additional modules!)

Regards,

Lee.
Comment 1 Max Spicer 2005-05-17 13:28:07 UTC
Created attachment 519 [details]
Patch to fix the problem

I experienced this issue on my Debian sarge system.  There are no supplementary
gids at system startup, so the code failed.  However, if I ran it manually once
the system had started, it worked.  This is discussed at
http://forums.slimdevices.com/showthread.php?t=14170.

I've attached a patch that fixes this problem.	In this patch, I've also
changed if($)... to  if( $)... as the code is really hard to understand without
the space unless you're aware of the $) variable!
Comment 2 Robert Moser II 2005-05-17 14:26:38 UTC
Used patch in change 3238.
Comment 3 Chris Owens 2006-06-16 14:41:15 UTC
There are 536 bugs in the database with targets of '---' that were fixed prior to new year 2006.  I am setting them to targets of 6.2.1 to keep them from showing up in my queries.