<?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>4860</bug_id>
          
          <creation_ts>2013-07-17 12:43:45 +0000</creation_ts>
          <short_desc>syslog in systemd image ignores it&apos;s config file</short_desc>
          <delta_ts>2013-10-07 13:39:57 +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>1.5</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>normal</bug_severity>
          <target_milestone>1.5 M4</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="Stefan Stanacar">sstncr</reporter>
          <assigned_to name="Chen Qi">Qi.Chen</assigned_to>
          <cc>liezhi.yang</cc>
    
    <cc>mark.hatle</cc>
    
    <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</cc>
    
    <cc>Qi.Chen</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>34641</commentid>
    <comment_count>0</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-07-17 12:43:45 +0000</bug_when>
    <thetext>poky commit: 3dee534f1e25109e0bdb681de0746c336f4b8840

1. Build and boot core-image-sato with systemd
DISTRO_FEATURES_append = &quot; systemd&quot;
VIRTUAL-RUNTIME_init_manager = &quot;systemd&quot;

2. edit /etc/syslog-startup.conf (which is actully a link to /etc/syslog-startup.conf.busybox  and change LOGFILE from /var/log/messages to something else, e.g /var/log/test

3. systemctl restart syslog.service


4. /var/log/test should be created but it isn&apos;t

What happens here is that the service file just starts /sbin/syslog -n, and syslog seems to ignore it&apos;s startup file entirely.
The sysvinit startup script was actually sourcing and parsing /etc/syslog-startup.conf and passwd the values as arguments to syslog, the systemd service file just starts it.</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>34647</commentid>
    <comment_count>1</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-07-17 15:32:13 +0000</bug_when>
    <thetext>A related bug.
https://bugzilla.yoctoproject.org/show_bug.cgi?id=4837

//Chen Qi</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>35454</commentid>
    <comment_count>2</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-07 08:45:30 +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>35601</commentid>
    <comment_count>3</comment_count>
    <who name="Chen Qi">Qi.Chen</who>
    <bug_when>2013-08-13 05:23:51 +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>37687</commentid>
    <comment_count>4</comment_count>
    <who name="Stefan Stanacar">sstncr</who>
    <bug_when>2013-10-07 13:39:57 +0000</bug_when>
    <thetext>Okay, Verified.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>