[systemd-devel] Requested transaction contradicts existing jobs: start is destructive

Kumar Kartikeya Dwivedi memxor at gmail.com
Thu May 7 16:42:45 UTC 2020


On Thu, 7 May 2020 at 21:48, Mark Bannister <mbannister at janestreet.com> wrote:
> I wasn't sure how to follow your exact steps because I wasn't clear
> when you wrote session-N.scope whether I was expected to replace N
> with a number and if so where that number comes from?  Please confirm.

The 'N' in session-N.scope is replaced by the active session ID, the N
is what you see in loginctl under the SESSION column for your user.

For example: $ loginctl

SESSION  UID USER SEAT  TTY
     75 1000 kkd  seat0 tty2

1 sessions listed.

Here, my session scope is session-75.scope. However, there may be
multiple sessions, so the best way to find out on CentOS is doing cat
/proc/self/cgroup, you will see something like
"0::/user.slice/user-1000.slice/session-75.scope", the scope unit name
is present there. `loginctl user-status` should list the active
session with an asterisk (*) in the Sessions: field.

You can also use:
$ busctl get-property org.freedesktop.login1
/org/freedesktop/login1/session/self org.freedesktop.login1.Session Id
which returns: s "75".

If you are able to reproduce this on 219-67, please also attach the output of:
systemctl show session-N.scope
where 'N' is your session ID.

--
Kartikeya


More information about the systemd-devel mailing list