<?xml version="1.0" encoding="UTF-8" ?>

<bugzilla version="5.2"
          urlbase="https://bugzilla.altlinux.org/"
          
          maintainer="jenya@basealt.ru"
>

    <bug>
          <bug_id>34060</bug_id>
          
          <creation_ts>2017-10-25 13:56:22 +0300</creation_ts>
          <short_desc>Не запускается</short_desc>
          <delta_ts>2017-10-26 10:34:52 +0300</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>4</classification_id>
          <classification>Development</classification>
          <product>Sisyphus</product>
          <component>firebird-server</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>P3</priority>
          <bug_severity>normal</bug_severity>
          <target_milestone>---</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Evgeniy Korneechev">ekorneechev</reporter>
          <assigned_to name="Anton Farygin">rider</assigned_to>
          <cc>rider</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>166567</commentid>
    <comment_count>0</comment_count>
    <who name="Evgeniy Korneechev">ekorneechev</who>
    <bug_when>2017-10-25 13:56:22 +0300</bug_when>
    <thetext># 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166569</commentid>
    <comment_count>1</comment_count>
    <who name="Evgeniy Korneechev">ekorneechev</who>
    <bug_when>2017-10-25 14:39:34 +0300</bug_when>
    <thetext>В то же время в системе есть юнит для 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</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166571</commentid>
    <comment_count>2</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-10-25 15:42:11 +0300</bug_when>
    <thetext>firebird-3.0.2.32703.0-alt2 -&gt; sisyphus:

Wed Oct 25 2017 Aleksei Nikiforov &lt;darktemplar@altlinux.org&gt; 3.0.2.32703.0-alt2
- Fixed init script (closes: #34060).
- Updated provides and obsoletes.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166572</commentid>
    <comment_count>3</comment_count>
    <who name="Evgeniy Korneechev">ekorneechev</who>
    <bug_when>2017-10-25 15:48:24 +0300</bug_when>
    <thetext>Не так все просто - с таким init - service firebird start - зависает навечно.
Видимо еще нужно так:

@@ -36,7 +36,7 @@ start()
         --user $USER --exec &quot;$EXE&quot; &gt;/dev/null; then
         action &quot;Starting Firebird:&quot; \
             start-stop-daemon --start --pidfile &quot;$PIDFILE&quot; --chuid $USER --exec &quot;$EXE&quot; \
-            -- &quot;-pidfile $PIDFILE -start&quot;
+            -- &quot;-pidfile $PIDFILE -start -daemon -forever&quot;
     else
         msg_already_running Firebird
         passed &quot;Firebird startup&quot;</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166573</commentid>
    <comment_count>4</comment_count>
    <who name="Evgeniy Korneechev">ekorneechev</who>
    <bug_when>2017-10-25 15:52:23 +0300</bug_when>
    <thetext>(В ответ на комментарий №3)
&gt; +            -- &quot;-pidfile $PIDFILE -start -daemon -forever&quot;

К слову проверил - на первый взгляд все ОК.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>166583</commentid>
    <comment_count>5</comment_count>
    <who name="Repository Robot">repository-robot</who>
    <bug_when>2017-10-26 10:34:52 +0300</bug_when>
    <thetext>firebird-3.0.2.32703.0-alt3 -&gt; sisyphus:

Wed Oct 25 2017 Aleksei Nikiforov &lt;darktemplar@altlinux.org&gt; 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.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>