Koozali.org: home of the SME Server

Firebird service not starting

Offline tdbsoft

  • *
  • 81
  • +0/-0
    • http://www.tdb.com.au
Firebird service not starting
« on: December 31, 2016, 08:07:09 AM »
Hoping someone may have an answer on the correct way to start the Firebird SuperServer

This is the environment - I installed a clean version of SME 9.x (latest) then run a full update etc
Then followed the Firebird wiki at https://wiki.contribs.org/Firebird on how to install Firebird Superserver for 9.x
All seemed to install with out error.

I then ran the post install commands
Code: [Select]
config set firebird service status enabled
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99firebird
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc1.d/S01firebird
service firebird start

Found that these are not working as the run command file is /etc/init.d/firebird-superserver not firebird
so adjusted the above to
Code: [Select]
config set firebird service status enabled
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99firebird-superserver
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc1.d/S01firebird-superserver
service firebird-superserver start

This seems to work apart from the start command which returns [OFF]
Stop, restart and status work as they should but start just returns [OFF]
I think this is to do with the runlevel as in SME 8 it was 7 now in SME 9 it is defaulted to runlevel 4

As a work-around for the moment I have used
Code: [Select]
ln -s /etc/init.d/firebird-superserver /etc/rc7.d/S99firebird-superserver
Anyone know correct command to use or point me to a solution?

Not really that important minor issue when you run the service it yields
# service firebird-superserver start
Starting Firebird server [default] /usr/bin/dirname: extra operand `-daemon'
Try `/usr/bin/dirname --help' for more information.

Found to solution to this at http://tracker.firebirdsql.org/browse/CORE-5069

Offline Stefano

  • *
  • 10,836
  • +2/-0
Re: Firebird service not starting
« Reply #1 on: December 31, 2016, 01:38:24 PM »
instead of using

Code: [Select]
config set firebird service...

you have to use
Code: [Select]
config set firebird-superserver service status enabled
and create the same links as above, naming them SXXfirebird-superserver
« Last Edit: January 01, 2017, 01:16:04 PM by Stefano »

Offline Jean-Philippe Pialasse

  • *
  • 2,747
  • +11/-0
  • aka Unnilennium
    • http://smeserver.pialasse.com
Re: Firebird service not starting
« Reply #2 on: December 31, 2016, 04:58:27 PM »
Alternatively you can keep everything with firebird and just create a link in init.t called firebird pointing to frebird-uperserver

Offline tdbsoft

  • *
  • 81
  • +0/-0
    • http://www.tdb.com.au
Re: Firebird service not starting
« Reply #3 on: January 01, 2017, 08:21:57 AM »
instead of using

Code: [Select]
config set firebird service...

you have to use
Code: [Select]
config set firebird-superserver service status enabled
and create the same links as above, maning them SXXfirebird-suerserver

Thanks Stefano, I am building a new test server so will give it a try and an let you know.
If it works I will add to the wiki to help others that use Firebird.

Thanks again for you help.
Cheers, Trevor

Offline tdbsoft

  • *
  • 81
  • +0/-0
    • http://www.tdb.com.au
Re: Firebird service not starting
« Reply #4 on: January 01, 2017, 08:24:52 AM »
Alternatively you can keep everything with firebird and just create a link in init.t called firebird pointing to frebird-uperserver

Thanks Jean-Philippe, I will give it a try on a new test server if it works will add to the wiki as an alternative way to fix the issue.

Will post back to in a few days and let all know what worked.

Cheers, Trevor

Offline tdbsoft

  • *
  • 81
  • +0/-0
    • http://www.tdb.com.au
Re: Firebird service not starting
« Reply #5 on: January 01, 2017, 11:47:02 AM »
After testing I have gone with Stefano's answer as it would seem to be the best solution.

IE Post installation of Firebird Superserver
Code: [Select]
config set firebird-superserver service status enabled
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc7.d/S99firebird-superserver
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc1.d/S01firebird-superserver
ln -s /etc/rc.d/init.d/e-smith-service /etc/rc4.d/S99firebird-superserver
service firebird-superserver start

Jean-Philippe's solution will likely work but would require some extra work to implement.
Code: [Select]
Alternatively you can keep everything with firebird and just create a link in init.t called firebird pointing to frebird-uperserver
When you install firebird superserver and run the command
config set firebird service status enabled
it still create links with KXXfirebird-superserver and SXXfirebird-superserver not as you would expect KXXfirebird and SXXfirebird

Anyway thanks to all - I will update the wiki to hopefully help others

Cheers, Trevor