koha-devel
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Koha-devel] Z39.50 daemon launcher incompatible with FreeBSD


From: Thomas D
Subject: [Koha-devel] Z39.50 daemon launcher incompatible with FreeBSD
Date: Mon Jun 20 08:30:23 2005

20 June 2005


Communicating with the original poster confirmed that this issue was never
resoved.  Will this be fixed in time for 2.2.3RC?

Koha should not require a switch not supported by the Free BSD su command.

Programmers should not use switches that are not universally supported if
that can be avoided

The original thread is quoted below


Thomas D

-------------------------------------------
Date:  Sat Apr 2 15:20:23 NZST 2005
From:  "Karl Agee" <address@hidden>
Subject:  [Koha] question launching z3950 daemon
To : address@hidden
-------------------------------------------

Well, I found out what is going on.  The script is
calling a shell for the z3950 daemon:

su -s /bin/sh -c $KohaZ3950Shell - $RunAsUser &

and my version of su in freebsd doesnt support that
option (-s).

How would I modify the script so that it does???  Does
the program need it????

--karl

--- Karl Agee <kdagee2 at yahoo.com> wrote:
> 
> --- Stephen Hedges <shedges at skemotah.com> wrote:
> > Karl Agee said:
> > > 1) when lauching like this:
> > >
> > > -su-2.05b#
> > >
> >
>
/usr/home/kdagee/koha-2.2.1/scripts/z3950daemon/z3950-daemon-launch.sh
> > 
> > Nope, that won't work.  That's the location of
> your
> > unzipped download, not
> > the location of your Koha install.
> 
> 8-D  silly me.
> 
> 
> > 
> > > 2) when launching like this:
> > >
> > >  #
> > >
> >
>
/usr/local/koha/intranet/scripts200503291957/z3950daemon/z3950-daemon-launch.sh
> > >
> > > I get:
> > >
> > > b#
> > >
> >
>
/usr/local/koha/intranet/scripts200503291957/z3950daemon/z3950-daemon-launch.sh
> > > -su-2.05b# su: illegal option -- s
> > > usage: su [-] [-flm] [-c class] [login [args]]
> > 
> > Looks like your shell thinks you typed in "su -s"
> --
> > for some reason.
> > But don't you have a
> > /usr/local/koha/intranet/scripts directory?  The
> > date
> > after the "scripts" (scripts200503291957)
> indicates
> > that it's a backup
> > from a previous install and not your current
> > install.
> 
> -su-2.05b# locate z3950-daemon-launch.sh
>
/usr/home/kdagee/koha-2.2.0/scripts/z3950daemon/z3950-daemon-launch.sh
>
/usr/home/kdagee/koha-2.2.1/scripts/z3950daemon/z3950-daemon-launch.sh
> /usr/local/etc/rc.d/z3950-daemon-launch.sh
>
/usr/local/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh
>
/usr/local/koha/intranet/scripts200503291957/z3950daemon/z3950-daemon-launch.sh
> 
> # cd /usr/local/koha/intranet/scripts/z3950daemon
> 
> -su-2.05b# ls
> processz3950queue       z3950-daemon-options
> z3950-daemon-launch.sh  z3950-daemon-shell.sh
> 
> -su-2.05b# ./z3950-daemon-launch.sh 
> -su-2.05b# su: illegal option -- s
> usage: su [-] [-flm] [-c class] [login [args]]
> 
> -su-2.05b# sh z3950-daemon-launch.sh 
> -su-2.05b# su: illegal option -- s
> usage: su [-] [-flm] [-c class] [login [args]]
> 
> 
> -su-2.05b# cd ~ 
> 
> -su-2.05b#
>
/usr/local/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh
> -su-2.05b# su: illegal option -- s
> usage: su [-] [-flm] [-c class] [login [args]]
> 
> 
> ok, so, why would bash give me this error?  I've
> never
> seen it before.  I get this if I put the startup
> scripts folder (via a soft link) as well.
> 
> only thing I can think of:
> 
> -su-2.05b# ls -la
>
/usr/local/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh
> -rwxr-xr-x  1 www  www  2750 Mar 29 19:57
>
/usr/local/koha/intranet/scripts/z3950daemon/z3950-daemon-launch.sh
> 
> user/group www is the apache user......is this
> correct?
> 
> The only thing I see in the page source is a
> reference
> to a javascript thing for z3950.  Does this launch
> the
> daemon?
> 
> --karl
> 
> 
>               
> __________________________________ 
> Do you Yahoo!? 
> Yahoo! Personals - Better first dates. More second
> dates. 
> http://personals.yahoo.com
> 
> _______________________________________________
> Koha mailing list
> Koha at lists.katipo.co.nz
> http://lists.katipo.co.nz/mailman/listinfo/koha
> 


                
__________________________________ 
Do you Yahoo!? 
Yahoo! Small Business - Try our new resources site!
http://smallbusiness.yahoo.com/resources/ 


---------------------------------------------
Protect your mails from viruses thanks to Alinto Premium services 
http://www.alinto.com



reply via email to

[Prev in Thread] Current Thread [Next in Thread]