$ env|grep UPST
UPSTART_SESSION=unix:abstract=/com/ubuntu/upstart-session/1000/21059
UPSTART_INSTANCE=
UPSTART_EVENTS=xsession started
UPSTART_JOB=unity7
$
It behaves differently based on the process environment - as many programs do. If you want to query the status of system-level jobs, you can use 'status --system' to bypass the per-user session.
And if you want the behavior of 'su' to not be tainted by your user environment, run 'su -'.
$ env|grep UPST SESSION= unix:abstract= /com/ubuntu/ upstart- session/ 1000/21059 EVENTS= xsession started
UPSTART_
UPSTART_INSTANCE=
UPSTART_
UPSTART_JOB=unity7
$
It behaves differently based on the process environment - as many programs do. If you want to query the status of system-level jobs, you can use 'status --system' to bypass the per-user session.
And if you want the behavior of 'su' to not be tainted by your user environment, run 'su -'.