Firebird RDBMS start script: error starting, stopping not possible

Asked by Sibylle Koczian

Ubuntu Edgy with the Firebird packages belonging to it (version 1.5.3., SuperServer). I want to start and stop the server manually.

Calling "sudo /etc/init.d/firebird2 start" gives the message "/etc/init.d/firebird2: 28: source: not found", but the server starts and I can use it normally. This is definitely new with Edgy, didn't happen with Dapper.

Calling "sudo /etc/init.d/firebird2 stop" gives first the same message, then:
"Stopping Firebird server: Your user name and password are not defined. Ask your database administrator to set up a Firebird login.
can not attach to server"
The server doesn't stop, I can still connect to it. This might not be new, I don't always stop the server explicitly.

Line 28 of the starting script and the lines just before:

DBAPasswordFile=/etc/firebird2/SYSDBA.password
# read actual password from SYSDBA.password if it exists
[ -e "$DBAPasswordFile" ] && source "$DBAPasswordFile" # <- Line 28

The file /etc/firebird2/SYSDBA.password exists and contains the SYSDBA password. But that shouldn't be necessary to start and to stop the server, should it?

The first line of the script, in case this might be relevant.

#!/bin/sh

Is "source" perhaps a bash command? "help source" works, "man source" doesn't.

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu Edit question
Assignee:
No assignee Edit question
Solved by:
Dean Sas
Solved:
Last query:
Last reply:
Revision history for this message
Sibylle Koczian (sibylle-koczian) said :
#1

Got help in the Firebird support group: changing #!/bin/sh to #!/bin/bash helped. But that means the start script was broken in the first place: it shouldn't say #/bin/sh and then use bash extensions.

It was buggy anyway:
https://launchpad.net/distros/ubuntu/+source/firebird2/+bug/33235
solved by this patch:
http://librarian.launchpad.net/4289014/etc-init.d-firebird2.patch

Who maintains these scripts, Firebird or Ubuntu? Should I report this as a bug?

Revision history for this message
Best Dean Sas (dsas) said :
#2

Sibylle, glad you got your problem solved :) The bug probably lies with Firefox, but I couldn't say that for certain.

You can report it at https://launchpad.net/distros/ubuntu/+source/firebird2/+filebug anyway, and someone will fix it, whether that's by a Ubuntu developer doing it, or by a ubuntu bug guy reporting it to firebird.

Revision history for this message
Sibylle Koczian (sibylle-koczian) said :
#3

I already reported it: Bug #71065, created 2006-11-09, still unconfirmed, no comments.