[Bug 1217863] Re: /etc/profile.d/upstart-phablet.sh sets UPSTART_SESSION to null value
Launchpad Bug Tracker
1217863 at bugs.launchpad.net
Thu Feb 20 08:08:27 UTC 2014
Status changed to 'Confirmed' because the bug affects multiple users.
** Changed in: systemd (Ubuntu)
Status: New => Confirmed
--
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:
Confirmed
Status in “ubuntu-touch-session” package in Ubuntu:
Confirmed
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