Bugzilla – Bug 1492
Slimserver fails to start when using Solaris 10 service framework
Last modified: 2011-03-16 04:34:10 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.
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!
Used patch in change 3238.
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.