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

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

    <bug>
          <bug_id>36861</bug_id>
          
          <creation_ts>2019-06-04 23:02:07 +0300</creation_ts>
          <short_desc>Несоответствие между sysvinit и systemd</short_desc>
          <delta_ts>2022-08-08 19:44: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>influxdb</component>
          <version>unstable</version>
          <rep_platform>all</rep_platform>
          <op_sys>Linux</op_sys>
          <bug_status>CLOSED</bug_status>
          <resolution>NOTABUG</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="Pavel Vainerman">pv</reporter>
          <assigned_to name="Alexey Shabalin">shaba</assigned_to>
          <cc>lav</cc>
    
    <cc>shaba</cc>
    
    <cc>shad</cc>
          
          <qa_contact>qa-sisyphus</qa_contact>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>182207</commentid>
    <comment_count>0</comment_count>
    <who name="Pavel Vainerman">pv</who>
    <bug_when>2019-06-04 23:02:07 +0300</bug_when>
    <thetext>Обнаружилось, что в sysvinit версии скрипта используется переменная
CONFIG
...
SourceIfNotEmpty /etc/sysconfig/influxdb
...
start_daemon --background --pidfile &quot;$PIDFILE&quot; --lockfile &quot;$LOCKFILE&quot; --user influxdb -- $DAEMON --pidfile $PIDFILE --config $CONFIG $INFLUXD_OPTS


А в systemd  (influxdb.service) жёстко прописан
EnvironmentFile=-/etc/sysconfig/influxdb
ExecStart=/usr/bin/influxd -config /etc/influxdb/influxdb.conf $INFLUXD_OPTS

Наверное это не очень хорошо.
По крайней мере неожиданно. Я нарвался на это при переходе с p8 на Сизиф (давно),
т.к. переопределял CONFIG в /etc/sysconfig/influxdb</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>182270</commentid>
    <comment_count>1</comment_count>
    <who name="Vitaly Lipatov">lav</who>
    <bug_when>2019-06-06 14:10:38 +0300</bug_when>
    <thetext>(В ответ на комментарий №0)
&gt; Обнаружилось, что в sysvinit версии скрипта используется переменная
&gt; CONFIG
И она задана в init-скрипте как
CONFIG=/etc/influxdb/influxdb.conf

в /etc/sysconfig/influxdb указано, что можно переопределять:
# Pass extra arguments to influxd
# INFLUXD_OPTS=
# STDOUT=/dev/null
# STDERR=/var/log/influxdb/influxd.log
всё остальное это самодеятельность.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>