changeServerMode.sh

158 views
Skip to first unread message

Tomasz Dubiel

unread,
Jul 14, 2023, 12:48:41 PM7/14/23
to firebird-support
Hello.
I installed Firebird 3.0.10 on Debian. As there are plenty of small databases, I set Server Mode to Classic and used changeServerMode.sh.
And now: how do I manage the Firebird service? As after fresh installation there was firebird-superserver service, now I see something like that:
How can I clean up all of this? How am I supposed to manage Firebird service on this server?
Best regards,
Tomasz.
servermode.png

Tomasz Dubiel

unread,
Jul 14, 2023, 1:03:13 PM7/14/23
to firebird-support
When I launch:
systemctl --type=service --state=running
I see no Firebird service.
When:
systemctl list-unit-files
I see:
firebird-classic@.service                                                 static
firebird-superserver.service                                            disabled
firebird-classic.socket                                                     enabled

Which command should I use now to stop and start Firebird service?

Tomasz Dubiel

unread,
Jul 14, 2023, 1:07:54 PM7/14/23
to firebird-support
As I see, this should happen, but /etc/inetd.conf is untouched.
updateInetdEntry() {
    newLine="gds_db  stream  tcp     nowait.30000      $RunUser ${fb_install_prefix}/bin/firebird firebird # Firebird Database Remote Server"
    replaceLineInFile /etc/inetd.conf "$newLine" "^gds_db"
}
Nothing happened probably because I commented out this line by myself after Firebird installation.

liviuslivius

unread,
Jul 14, 2023, 1:11:07 PM7/14/23
to firebird...@googlegroups.com
Hi

I do not lnow linux bu do you mean service or active processes?
As classic use 1 process per attachment, superserver use 1 process for all attachments.

Regards,
Karol Bieniaszewski


-------- Oryginalna wiadomość --------
Od: Tomasz Dubiel <tkdu...@gmail.com>
Data: 14.07.2023 18:48 (GMT+01:00)
Do: firebird-support <firebird...@googlegroups.com>
Temat: [firebird-support] changeServerMode.sh

--
You received this message because you are subscribed to the Google Groups "firebird-support" group.
To unsubscribe from this group and stop receiving emails from it, send an email to firebird-suppo...@googlegroups.com.
To view this discussion on the web, visit https://groups.google.com/d/msgid/firebird-support/1a9bb79f-08ec-4331-a852-7d66af18efbfn%40googlegroups.com.

Tomasz Dubiel

unread,
Jul 14, 2023, 1:13:44 PM7/14/23
to firebird-support
I know it, but I have a problem now with how to start and stop Firebird service. If it should be still related to /etc/inetd.conf, I edited it now:
gds_db  stream  tcp     nowait.30000      firebird /opt/firebird/bin/firebird firebird # Firebird Database Remote Server
restarted openbsd-inetd
but still Firebird is available and /etc/init.d/openbsd-inetd stop
doesnt work.

Tomasz Dubiel

unread,
Jul 14, 2023, 1:15:19 PM7/14/23
to firebird-support
Using this script created a lot of mess. I don't know which command is responsible for managing Firebird service.

Tomasz Dubiel

unread,
Jul 14, 2023, 1:16:57 PM7/14/23
to firebird-support
systemctl start firebird-classic
Failed to start firebird-classic.service: Unit firebird-classic.service not found.
restarting openbsd-inetd changes nothing

Tomasz Dubiel

unread,
Jul 14, 2023, 1:21:30 PM7/14/23
to firebird-support
Now I see such entries in syslog:
Configuration file /lib/systemd/system/firebird-classic@.service is marked world-inaccessible. This has no effect as configuration data is accessible via APIs without restrictions. Proceeding anyway.

Tomasz Dubiel

unread,
Jul 14, 2023, 1:30:29 PM7/14/23
to firebird-support
I think I sorted this out by removing entries firebird-classic.service, firebird-superserver.service and firebird-classic.socket from /lib/systemd/system and restarting openbsd-inetd.
Now /etc/init.d/openbsd-inetd stop
stops Firebird
and /etc/init.d/openbsd-inetd start
starts Firebird
But there should be really some instructions how to install classic 3.0.10 firebird on Linux...

Tomasz Dubiel

unread,
Jul 14, 2023, 1:32:36 PM7/14/23
to firebird-support
Or this script should be deleted if the only thing I needed to do was to change serverMode in firebird.conf...but then firebird classic would be working under firebird-superserver service? Weird.

Virgo Pärna

unread,
Jul 17, 2023, 4:18:12 AM7/17/23
to firebird...@googlegroups.com
On 14.07.2023 20:03, Tomasz Dubiel wrote:
> firebird-classic.socket
>     enabled
>

That should mean, that it used systemd socket activation, not inetd.
Systemd listens at port 3050 and launches firebird process when it
receives connection... IIRC.

--
Virgo Pärna
Gaiasoft OÜ
vi...@gaiasoft.ee

Reply all
Reply to author
Forward
0 new messages