2012/7/13 Jakub Skory <[email protected]>:
> 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

This does not work on my Linux.

I can make it work with [ -e "$JAVA_COMMAND" ]

Would this also work on Solaris?


Clément.
_______________________________________________________________
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