distribution
distribution copied to clipboard
clr-service-restart doesn't work with cgroups v2
I've added systemd.unified_cgroup_hierarchy=1
to /etc/kernel/cmdline.d/unified-cgroups.conf
and clr-service-restart
stopped working with opendir(): No such file or directory
It seems that it tries to access /sys/fs/cgroup/systemd/system.slice
, which does not exist with unified hierarchy, probably it should be /sys/fs/cgroup/system.slice
instead.
I'm running version 40680
sudo strace -f clr-service-restart -a -n
execve("/usr/bin/clr-service-restart", ["clr-service-restart", "-a", "-n"], 0x7ffe4f0f1438 /* 15 vars */) = 0
brk(NULL) = 0x555815be2000
access("/etc/ld.so.preload", R_OK) = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/var/cache/ldconfig/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=31162, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 31162, PROT_READ, MAP_PRIVATE, 3, 0) = 0x555814e1a000
close(3) = 0
openat(AT_FDCWD, "/usr/lib64/libc.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\3\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\300|\2\0\0\0\0\0"..., 832) = 832
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=4263248, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x555814e18000
pread64(3, "\6\0\0\0\4\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0@\0\0\0\0\0\0\0"..., 784, 64) = 784
mmap(NULL, 2108816, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x555814c00000
mmap(0x555814c26000, 1527808, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x26000) = 0x555814c26000
mmap(0x555814d9b000, 348160, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x19b000) = 0x555814d9b000
mmap(0x555814df0000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f0000) = 0x555814df0000
mmap(0x555814df6000, 52624, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x555814df6000
close(3) = 0
mmap(NULL, 12288, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x555814e15000
arch_prctl(ARCH_SET_FS, 0x555814e15740) = 0
set_tid_address(0x555814e15a10) = 51797
set_robust_list(0x555814e15a20, 24) = 0
rseq(0x555814e16060, 0x20, 0, 0x53053053) = 0
mprotect(0x555814df0000, 16384, PROT_READ) = 0
mprotect(0x555814e26000, 4096, PROT_READ) = 0
mprotect(0x7fb5483f5000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x555814e1a000, 31162) = 0
openat(AT_FDCWD, "/sys/fs/cgroup/systemd/system.slice", O_RDONLY|O_NONBLOCK|O_CLOEXEC|O_DIRECTORY) = -1 ENOENT (No such file or directory)
dup(2) = 3
fcntl(3, F_GETFL) = 0x2 (flags O_RDWR)
getrandom("\x63\x4f\xc9\xde\xee\x9f\xfd\x68", 8, GRND_NONBLOCK) = 8
brk(NULL) = 0x555815be2000
brk(0x555815c62000) = 0x555815c62000
newfstatat(3, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x1), ...}, AT_EMPTY_PATH) = 0
write(3, "opendir(): No such file or direc"..., 37opendir(): No such file or directory
) = 37
close(3) = 0
exit_group(1) = ?
+++ exited with 1 +++