<?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>5144</bug_id>
          
          <creation_ts>2013-09-09 09:34:43 +0000</creation_ts>
          <short_desc>when use systemd, &quot;systemctl --user&quot; can not print out expected info</short_desc>
          <delta_ts>2013-09-10 10:04:13 +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>RESOLVED</bug_status>
          <resolution>NOTABUG</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 M5</target_milestone>
          
          
          <everconfirmed>1</everconfirmed>
          <reporter name="LiRongQing">rongqing.li</reporter>
          <assigned_to name="Ross Burton">ross.burton</assigned_to>
          <cc>meta.mr.watcher</cc>
    
    <cc>meta.watcher</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>36414</commentid>
    <comment_count>0</comment_count>
    <who name="LiRongQing">rongqing.li</who>
    <bug_when>2013-09-09 09:34:43 +0000</bug_when>
    <thetext>1. enable systemd when building image

VIRTUAL-RUNTIME_init_manager = &quot; systemd &quot;
DISTRO_FEATURES_append = &quot; systemd&quot;
DISTRO_FEATURES_BACKFILL_CONSIDERED = &quot;sysvinit&quot;

2. run command as below
root@qemux86-64:~# systemctl --user
Failed to get D-Bus connection: Unable to autolaunch a dbus-daemon without a $DISPLAY for X11
root@qemux86-64:~#</thetext>
  </long_desc><long_desc isprivate="0" >
    <commentid>36469</commentid>
    <comment_count>1</comment_count>
    <who name="Ross Burton">ross.burton</who>
    <bug_when>2013-09-10 10:04:13 +0000</bug_when>
    <thetext>That tells systemctl to display the state of the current user session, and it can&apos;t find one because $DBUS_SESSION_BUS_ADDRESS isn&apos;t set and the fallback of autolaunching using $DISPLAY doesn&apos;t work because that isn&apos;t set also.

If you&apos;ve already started a user session then you&apos;ll need to set one of those variables so that systemctl can find the user session you&apos;re after.

However, are you attempting to *start* a user session using systemd?  If so, then you need to use &quot;/usr/lib/systemd/systemd --user&quot;.

Closing notabug as this isn&apos;t a bug.</thetext>
  </long_desc>
      
      

    </bug>

</bugzilla>