20756: Update systemd check to check XDG_RUNTIME_DIR. 20756-singularity-cgroups
authorTom Clegg <tom@curii.com>
Wed, 2 Oct 2024 20:25:33 +0000 (16:25 -0400)
committerTom Clegg <tom@curii.com>
Wed, 2 Oct 2024 20:25:33 +0000 (16:25 -0400)
commita0ee23096d91d2f9d010c5338df8a0c82daddcf8
treed2f484dc3f86d414b1d8a42cdcf01e61ad427ee1
parent0fc35e3fcda0dcae3ddf48053e1b26f244d61cea
20756: Update systemd check to check XDG_RUNTIME_DIR.

Skip systemd check crunch-run is running as root.  The systemd
requirement only applies to userns / non-root usage.

Arvados-DCO-1.1-Signed-off-by: Tom Clegg <tom@curii.com>
lib/crunchrun/cgroup.go