Subject Re: embedded firebird under linux fails when no /opt/firebird/XYZ exist
Author Fabrice Aeschbacher
--- In, Niki Ivanchev <niki_iv@i...>
> >
> >"Classic server" is very light for a single user. You do need to
> >fb_inet_server and its various pieces but it doesn't run unless a user
> >connects to it. The xinet daemon listens for a connection request and
> >starts a single instance of the server for each connection request.
> >
> >Possibly a good place for you to start would be to look at the
> >notes for Classic, dissect the tar.gz kit, and understand what each
of the
> >bash scripts does.
> >
> >As for permissions needed to install the Jaybird pieces, you should
ask on
> >the firebird-java list about this. It's probably in the FAQ,
> >anyway. Finally, write your own installer script to suit the needs
of your
> >users.
> >
> >./helen
> >
> >
> Thanks Helen - allready did.
> postinstall is modifying /etc/inetd.conf to add the service to inetd.
> Obviously this can be done only from root user. So it looks like my app
> will need root privilege to be installed correctly.
> I was hoping that some solution to run classic as an ordinary user can
> be found if database is in users own directory... but since
> path is hardcoded to library true 'windows embedded server' beheviour
> cannot be achieved.

Installing Firebird on a computer means "change this computer into a
database server". No wonder that this requires root privilege to
achieve this operation.

However, if you do not want to change any system file at all, you can
try to spawn another instance of inetd (or xinetd), with a private
config file, just serving your needs (for example, /usr/sbin/xinetd
-stayalive -pidfile ~/ -f ~/xinetd.conf)
You could then install all firebird files into ~/firebird, and modify
RootDirectory in ~/firebird/firebird.conf

I haven't tried it, but it sounds possible.

Best regards,

best regards,
Fabrice Aeschbacher