On Wed, Jul 18, 2012 at 10:00:31AM +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
> This does not work on my Linux.
On my Linux too, sorry for stupid mistake.

> I can make it work with [ -e "$JAVA_COMMAND" ]
> Would this also work on Solaris?
[ -e "$JAVA_COMMAND" ] is of course correct both on Linux and Solaris.
-- 
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.
_______________________________________________________________________

Attachment: pgpnBrgWG2o4v.pgp
Description: PGP signature

www(dot)ukw(dot)edu(dot)pl

MID: 387015
11:10:03 07/18/12
_______________________________________________________________
Ldap Synchronization Connector (LSC) - http://lsc-project.org

lsc-users mailing list
[email protected]
http://lists.lsc-project.org/listinfo/lsc-users

Reply via email to