Bug 34060 - Не запускается
Summary: Не запускается
Status: CLOSED FIXED
Alias: None
Product: Sisyphus
Classification: Development
Component: firebird-server (show other bugs)
Version: unstable
Hardware: all Linux
: P3 normal
Assignee: Anton Farygin
QA Contact: qa-sisyphus
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2017-10-25 13:56 MSK by Evgeniy Korneechev
Modified: 2017-10-26 10:34 MSK (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Evgeniy Korneechev 2017-10-25 13:56:22 MSK
# rpm -q firebird-server 
firebird-server-3.0.2.32703.0-alt1

# /etc/rc.d/init.d/firebird start
start-stop-daemon: stat: /usr/bin/fbmgr: No such file or directory

Видимо init-файл взят из 2ой версии, нужно подправить для 3ей.

/lib/systemd/system/firebird-superserver.service при установке из исходников содержит:
ExecStart=/opt/firebird/bin/fbguard -pidfile /var/run/firebird/firebird.pid -daemon -forever

У нас он лежит в %_sbindir
Comment 1 Evgeniy Korneechev 2017-10-25 14:39:34 MSK
В то же время в системе есть юнит для systemd:
# rpm -ql firebird-server | grep service
/lib/systemd/system/firebird-classic@.service
/lib/systemd/system/firebird-superserver.service

Соответственно он работает:
# systemctl status firebird-superserver.service
● firebird-superserver.service - Firebird Database Server ( SuperServer )
   Loaded: loaded (/lib/systemd/system/firebird-superserver.service; disabled; vendor preset: disabled)
   Active: active (running) since Ср 2017-10-25 14:35:05 MSK; 2s ago
  Process: 32094 ExecStart=/usr/sbin/fbguard -pidfile /var/run/firebird/default.pid -daemon -forever (code=exited, status=0/SUCCESS)
 Main PID: 32097 (firebird)
    Tasks: 5 (limit: 512)
   CGroup: /system.slice/firebird-superserver.service
           ├─32096 /usr/sbin/fbguard -pidfile /var/run/firebird/default.pid -daemon -forever
           └─32097 /usr/sbin/firebird
Comment 2 Repository Robot 2017-10-25 15:42:11 MSK
firebird-3.0.2.32703.0-alt2 -> sisyphus:

Wed Oct 25 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 3.0.2.32703.0-alt2
- Fixed init script (closes: #34060).
- Updated provides and obsoletes.
Comment 3 Evgeniy Korneechev 2017-10-25 15:48:24 MSK
Не так все просто - с таким init - service firebird start - зависает навечно.
Видимо еще нужно так:

@@ -36,7 +36,7 @@ start()
         --user $USER --exec "$EXE" >/dev/null; then
         action "Starting Firebird:" \
             start-stop-daemon --start --pidfile "$PIDFILE" --chuid $USER --exec "$EXE" \
-            -- "-pidfile $PIDFILE -start"
+            -- "-pidfile $PIDFILE -start -daemon -forever"
     else
         msg_already_running Firebird
         passed "Firebird startup"
Comment 4 Evgeniy Korneechev 2017-10-25 15:52:23 MSK
(В ответ на комментарий №3)
> +            -- "-pidfile $PIDFILE -start -daemon -forever"

К слову проверил - на первый взгляд все ОК.
Comment 5 Repository Robot 2017-10-26 10:34:52 MSK
firebird-3.0.2.32703.0-alt3 -> sisyphus:

Wed Oct 25 2017 Aleksei Nikiforov <darktemplar@altlinux.org> 3.0.2.32703.0-alt3
- Fixed init script once more (closes: #34060).
- Fixed issue with firebird not finding INTL module.
- Fixed config for xinetd.