On Fri, Jul 13, 2012 at 01:39:03PM +0200, Clément OUDOT wrote: > > I had problem with starting LSC on Solaris 10. I had to do some changes > > in startup script. Solaris using slight different version of ps and grep > > command, and 'which' always return with 0 exit code. Updated version in > > attachement. Changes are made in line 130 and 146-149. > > Thanks for this patch, but it concerns an old startup script. The new > script can be found here: > http://tools.lsc-project.org/projects/lsc/repository/entry/lsc/branches/v2.0/bin/lsc > > Could you see if it works with Solaris 10? As I said in previous post - Solaris has 'which' command which ALWAYS returns 0 exit code. I proposing checking if file really exist instead of checking exit code.
Except of above new script works OK! 91c91 < if [ $? -eq 0 ]; then return; fi --- > if [ -e JAVA_COMMAND ]; then return; fi 109c109 < if [ $? -eq 0 ]; then --- > if [ -e CYGPATH_COMMAND ]; then -- Jakub Skory, <kuba(at)ukw(dot)edu(dot)pl> System Operator IT Center: _______________________________________________________________________ tel: +48 52 3257 649, +48 52 3257 647 fax: +48 52 3257 646, +48 52 3257 647 working hours: 08a.m. - 04p.m. mail: di(at)ukw(dot)edu(dot)pl web: http://di.ukw.edu.pl/ postal address: M. Kopernika 1 (room 8/9), 85-074, Bydgoszcz. _______________________________________________________________________ Kazimierz Wielki University, J. K. Chodkiewicza 30, 85-064, Bydgoszcz, Poland. _______________________________________________________________________
pgp7HGbRYsjp2.pgp
Description: PGP signature
www(dot)ukw(dot)edu(dot)pl MID: 380738 14:26:00 07/13/12
_______________________________________________________________ Ldap Synchronization Connector (LSC) - http://lsc-project.org lsc-users mailing list [email protected] http://lists.lsc-project.org/listinfo/lsc-users

