[Bug 1217863] [NEW] /etc/profile.d/upstart-phablet.sh sets UPSTART_SESSION to null value

James Hunt 1217863 at bugs.launchpad.net
Wed Aug 28 12:33:57 UTC 2013


Public bug reported:

Script /etc/profile.d/upstart-phablet.sh sets XDG_RUNTIME_DIR to a
suitable value, then calls:

export UPSTART_SESSION=$(/sbin/initctl list-sessions | awk '{ print $NF;
quit }')

However, "sudo su -" does not result in the creation of XDG_RUNTIME_DIR
for the root user, hence UPSTART_SESSION is set to the null value.

This leads to confusing upstart behaviour:

phablet at ubuntu-phablet:~$ sudo su -
initctl: unable to determine sessions
root at ubuntu-phablet:~# initctl list
initctl: Unable to connect to Upstart: Empty address ''
root at ubuntu-phablet:~# unset UPSTART_SESSION
root at ubuntu-phablet:~# initctl list | head
cgroup-lite start/running
mountall-net stop/waiting
mountnfs-bootclean.sh start/running
passwd stop/waiting
rc stop/waiting
rsyslog start/running, process 437
startpar-bridge stop/waiting
tty4 stop/waiting
udev start/running, process 631
upstart-udev-bridge start/running, process 624

I think the issue may actually be related to logind not creating
XDG_RUNTIME_DIR.

** Affects: systemd (Ubuntu)
     Importance: Undecided
         Status: New

** Affects: ubuntu-touch-session (Ubuntu)
     Importance: Undecided
         Status: New

** Also affects: systemd (Ubuntu)
   Importance: Undecided
       Status: New

-- 
You received this bug notification because you are a member of Ubuntu
Foundations Bugs, which is subscribed to systemd in Ubuntu.
https://bugs.launchpad.net/bugs/1217863

Title:
  /etc/profile.d/upstart-phablet.sh sets UPSTART_SESSION to null value

Status in “systemd” package in Ubuntu:
  New
Status in “ubuntu-touch-session” package in Ubuntu:
  New

Bug description:
  Script /etc/profile.d/upstart-phablet.sh sets XDG_RUNTIME_DIR to a
  suitable value, then calls:

  export UPSTART_SESSION=$(/sbin/initctl list-sessions | awk '{ print
  $NF; quit }')

  However, "sudo su -" does not result in the creation of
  XDG_RUNTIME_DIR for the root user, hence UPSTART_SESSION is set to the
  null value.

  This leads to confusing upstart behaviour:

  phablet at ubuntu-phablet:~$ sudo su -
  initctl: unable to determine sessions
  root at ubuntu-phablet:~# initctl list
  initctl: Unable to connect to Upstart: Empty address ''
  root at ubuntu-phablet:~# unset UPSTART_SESSION
  root at ubuntu-phablet:~# initctl list | head
  cgroup-lite start/running
  mountall-net stop/waiting
  mountnfs-bootclean.sh start/running
  passwd stop/waiting
  rc stop/waiting
  rsyslog start/running, process 437
  startpar-bridge stop/waiting
  tty4 stop/waiting
  udev start/running, process 631
  upstart-udev-bridge start/running, process 624

  I think the issue may actually be related to logind not creating
  XDG_RUNTIME_DIR.

To manage notifications about this bug go to:
https://bugs.launchpad.net/ubuntu/+source/systemd/+bug/1217863/+subscriptions




More information about the foundations-bugs mailing list