<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<!DOCTYPE bugzilla SYSTEM "https://bugzilla.yoctoproject.org/page.cgi?id=bugzilla.dtd">

<bugzilla version="5.0.6"
          urlbase="https://bugzilla.yoctoproject.org/"
          
          maintainer="it-coreprojects-helpdesk@linuxfoundation.org"
>

    <bug>
          <bug_id>4837</bug_id>
          
          <creation_ts>2013-07-10 09:03:25 +0000</creation_ts>
          <short_desc>busybox syslog has two different configuration files depending on the init system</short_desc>
          <delta_ts>2013-11-08 06:37:03 +0000</delta_ts>
          <reporter_accessible>1</reporter_accessible>
          <cclist_accessible>1</cclist_accessible>
          <classification_id>7</classification_id>
          <classification>Build System, Metadata &amp; Runtime</classification>
          <product>OE-Core</product>
          <component>core</component>
          <version>unspecified</version>
          <rep_platform>x86</rep_platform>
          <op_sys>Multiple</op_sys>
          <bug_status>VERIFIED</bug_status>
          <resolution>FIXED</resolution>
          
          
          <bug_file_loc></bug_file_loc>
          <status_whiteboard></status_whiteboard>
          <keywords></keywords>
          <priority>Medium</priority>
          <bug_severity>enhancement</bug_severity>
          <target_milestone>1.5 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Holger Freyther">holger</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>ke.zou</cc>
    
    <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>yi.zhao</cc>
          
          
          <cf_os>---</cf_os>
          <cf_regression_type>---</cf_regression_type>
          
          <cf_docchange>Don&apos;t know</cf_docchange>

      

      

      

          <comment_sort_order>oldest_to_newest</comment_sort_order>  
          <long_desc isprivate="0" >
    <commentid>34460</commentid>
    <comment_count>0</comment_count>
    <who name="Holger Freyther">holger</who>
    <bug_when>2013-07-10 09:03:25 +0000</bug_when>
    <thetext>busybox currently has two different ways to configure it and on the surface it would appear that both could be shared.

For sysvinit the /etc/syslog-startup.conf file is sourced by the init script and then the SYSLOG_ARGS is built. For systemd the /etc/default/busybox-syslog file is parsed and $OPTIONS will be used.

It should be possible to do the following:
* Move the SYSLOG_ARGS of the init script to /etc/default/busybox-syslog
* Use SYSLOG_ARGS in the busybox-syslog.service.in file

The benefit:
* It is less confusing why two configuration files (one documented but unused, one empty but used).</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34649</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-17 15:37:48 +0000</bug_when>
    <thetext>I think we should respect the configuration in /etc/syslog-startup.conf.

Besides, as the /etc/init.d/syslog.busybox parses /etc/syslog-startup.conf and gets SYSLOG_ARGS, I think we could make use of this script.

A related bug is https://bugzilla.yoctoproject.org/show_bug.cgi?id=4860.

That&apos;s actually a weekly test case.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34744</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-22 08:10:23 +0000</bug_when>
    <thetext>As Ross replied on the mailing list, &quot;there&apos;s work on-going to make the init classes delete scripts that are installed as appropriate&quot;. I&apos;ll wait until that work is done.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35453</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-07 08:45:17 +0000</bug_when>
    <thetext>sysvinit and systemd have different ideas about configuration files (or environment files in systemd), so using the same one for both is not appropriate.

Remove the &apos;syslog-startup.conf&apos; file if &apos;sysvinit&apos; is not in DISTRO_FEATURES.

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35600</commentid>
    <comment_count>4</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-13 05:23:08 +0000</bug_when>
    <thetext>merged into poky/master

Commit: 89f62147a61108b4be40001e1fbe3be33bacf00b
URL:    http://git.openembedded.org/?p=openembedded-core.git&amp;a=commit;h=89f62147a61108b4be40001e1fbe3be33bacf00b</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>38675</commentid>
    <comment_count>5</comment_count>
    <who name="Ke Zou">ke.zou</who>
    <bug_when>2013-11-08 06:37:03 +0000</bug_when>
    <thetext>verified with YOCTO #4860

https://bugzilla.yoctoproject.org/show_bug.cgi?id=4860</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>