Skip to main content
Topic: new installation refuses to shutdown (Read 956 times) previous topic - next topic
0 Members and 3 Guests are viewing this topic.

new installation refuses to shutdown

I am really out of ideas. Did a fresh install of the artix-mate iso and now I am unable to shut down the computer. Every try to do so ends up with nothing at all(seems like computer does not recognize the shutdown command). So a "sudo halt" as well as "sudo init 0" and "sudo shutdown now" does not work and does nothing at all. visibly nothing, but in the log file there is the line:
Code: [Select]
Jun  9 16:56:26 XXXXX openrc-shutdown[6027]: The system will power off now
That is the only entry for the shut down process. But nothing happens.
Interesting enough: after fuzzing around I got it to the state, that a shutdown now or halt or init 0 closes the de&wm and brings me back to lightdm. But don't ask me what I've done to do so. It also is not really reproducable. Sometimes it brings me back to lightdm, sometimes not.
Any hint is highly appreciated. If further log files and/or informations are missing, I'd be glad to provide those.

Re: new installation refuses to shutdown

Reply #1
i just do

sudo shutdown

but then i'm using dinit so maybe it's different for you.

I use mate.  It has an icon for the taskbar to shutdown.  Also from the lightdm there is an icon for shutdown as well.
Cat Herders of Linux

Re: new installation refuses to shutdown

Reply #2
Do you have elogind installed? Can you shut down with the loginctl shutdown command?

Re: new installation refuses to shutdown

Reply #3
Sorry for the late answer, I am just working till fridays ;)
elogind is installed but the loginctl poweroff command does the same as the shutdown command. Unfortunately nothing...
Here's a copy of what I did:
Code: [Select]
IT-PC-001:[manuel_back]:~$ loginctl poweroff
IT-PC-001:[manuel_back]:~$ sudo pacman -Ss elogind
system/elogind 246.10-7 [Installiert]
    The systemd project's logind, extracted to a standalone package
system/elogind-dinit 20211030-1 (dinit-system)
    dinit service scripts for elogind
system/elogind-openrc 20210704-1 [Installiert]
    OpenRC elogind init script
system/elogind-s6 20220123-1
    s6-rc service scripts for elogind
system/libelogind 246.10-7 [Installiert]
    elogind client libraries
world/elogind-runit 20220508-1
    runit service scripts for elogind
galaxy/seatd-dinit 20211103-2 (dinit-galaxy)
    dinit service scripts for seatd

btw: openRC is my init system of choice(forgot to mention that in the beginning). Installation was done with the calamares installer.

Re: new installation refuses to shutdown

Reply #4
Can you send us the logs of the moment you execute loginctl poweroff ?

You need to have syslog installed if you haven't.

Specifically, send us everything after this message:
Quote
[kernel] [xxxxx] elogind[xxx]: System is powering down. (The system is going down for power-off NOW!).

Re: new installation refuses to shutdown

Reply #5
it seems as calamares has installed syslog-ng for me. so I guess the relevant lines are contained in the everything.log. Here''s what I did:
Code: [Select]
IT-PC-001:[manuel_back]:/var/log$ sudo pacman -Ss syslog-ng
world/syslog-ng 3.36.1-1 [Installiert]
    Next-generation syslogd with advanced networking and filtering capabilities
world/syslog-ng-dinit 20211027-1 (dinit-world)
    dinit service scripts for syslog-ng
world/syslog-ng-openrc 20210505-2 (openrc-world) [Installiert]
    OpenRC syslog-ng init script
world/syslog-ng-runit 20180226-4 (runit-world)
    runit service scripts for syslog-ng
world/syslog-ng-s6 20210919-1 (s6-world)
    s6-rc service scripts for syslog-ng
extra/syslog-ng 3.36.1-1 [Installiert]
    Next-generation syslogd with advanced networking and filtering capabilities
IT-PC-001:[manuel_back]:/var/log$ tail -n 5 everything.log
Jun 14 19:04:03 IT-PC-001 supervise-daemon[3487]: Supervisor command line: supervise-daemon agetty.tty3 --start --pidfile /run/agetty.tty3.pid --respawn-period 60 /sbin/agetty -- tty3 38400 linux
Jun 14 19:04:03 IT-PC-001 supervise-daemon[3503]: Child command line: /sbin/agetty tty3 38400 linux
Jun 14 19:05:53 IT-PC-001 loginctl[3535]: Unknown command verb ?.
Jun 14 19:06:39 IT-PC-001 loginctl[3541]: Shutdown scheduled for Tue 2022-06-14 19:06:39 CEST, use 'shutdown -c' to cancel.
Jun 14 19:06:39 IT-PC-001 openrc-shutdown[3544]: The system will power off now
As you may see, I've issued the loginctl command at 19:06:39

Re: new installation refuses to shutdown

Reply #6
Code: [Select]
sudo /usr/bin/openrc-shutdown --poweroff 0


 

Re: new installation refuses to shutdown

Reply #7
Code: [Select]
IT-PC-001:[manuel_back]:~$ sudo /usr/bin/openrc-shutdown --poweroff 0
IT-PC-001:[manuel_back]:~$ tail -n 5 /var/log/everything.log
Jun 14 20:01:01 IT-PC-001 anacron[3494]: Anacron started on 2022-06-14
Jun 14 20:01:01 IT-PC-001 CROND[3486]: (root) CMDEND (run-parts /etc/cron.hourly)
Jun 14 20:01:01 IT-PC-001 anacron[3494]: Will run job `cron.daily' in 19 min.
Jun 14 20:01:01 IT-PC-001 anacron[3494]: Jobs will be executed sequentially
Jun 14 20:01:07 IT-PC-001 openrc-shutdown[3497]: The system will power off now
unfortunately nothing else is happening...

Re: new installation refuses to shutdown

Reply #8
Code: [Select]
IT-PC-001:[manuel_back]:~$ sudo /usr/bin/openrc-shutdown --poweroff 0
IT-PC-001:[manuel_back]:~$ tail -n 5 /var/log/everything.log
Jun 14 20:01:01 IT-PC-001 anacron[3494]: Anacron started on 2022-06-14
Jun 14 20:01:01 IT-PC-001 CROND[3486]: (root) CMDEND (run-parts /etc/cron.hourly)
Jun 14 20:01:01 IT-PC-001 anacron[3494]: Will run job `cron.daily' in 19 min.
Jun 14 20:01:01 IT-PC-001 anacron[3494]: Jobs will be executed sequentially
Jun 14 20:01:07 IT-PC-001 openrc-shutdown[3497]: The system will power off now
unfortunately nothing else is happening...

That's really weird, and no mention of elogind in the logs?

Mine looks sorta like this:
Quote
[kernel] [ 2536.509460] elogind[1227]: System is powering down. (The system is going down for power-off NOW!).
[openrc-shutdown] The system will power off now

Re: new installation refuses to shutdown

Reply #9
This may be of no help whatsoever  :D

But strace
Quote
strace is a diagnostic, debugging and instructional userspace utility for Linux. It is used to monitor and tamper with interactions between processes and the Linux kernel, which include system calls, signal deliveries, and changes of process state. The operation of strace is made possible by the kernel feature known as ptrace.
might shed some light, though it's hard to decipher as a non programmer (such as me).

Package is strace. Non default options might be required to get right output ? Have a look at the man page.

But for me the output of a successful shutdown with
Code: [Select]
sudo strace -o ~/poweroff.txt  /usr/bin/openrc-shutdown --poweroff 0
is
Code: [Select]
execve("/usr/bin/openrc-shutdown", ["/usr/bin/openrc-shutdown", "--poweroff", "0"], 0x7ffe43fcc110 /* 16 vars */) = 0
brk(NULL)                               = 0x555d7d0c8000
arch_prctl(0x3001 /* ARCH_??? */, 0x7fffad95bbd0) = -1 EINVAL (Invalid argument)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (No such file or directory)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=212039, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 212039, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f04a7577000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libeinfo.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=26376, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f04a7575000
mmap(NULL, 31568, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f04a756d000
mmap(0x7f04a756f000, 12288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f04a756f000
mmap(0x7f04a7572000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f04a7572000
mmap(0x7f04a7573000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f04a7573000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/librc.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=63240, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 65576, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f04a755c000
mprotect(0x7f04a755f000, 49152, PROT_NONE) = 0
mmap(0x7f04a755f000, 36864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f04a755f000
mmap(0x7f04a7568000, 8192, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7f04a7568000
mmap(0x7f04a756b000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7f04a756b000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/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\0P\224\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
pread64(3, "\4\0\0\0@\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0"..., 80, 848) = 80
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0`\337\35\363\37\2\247\262=\250>\216\371#5\230"..., 68, 928) = 68
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2100888, ...}, AT_EMPTY_PATH) = 0
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, 2146032, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f04a7350000
mprotect(0x7f04a7378000, 1904640, PROT_NONE) = 0
mmap(0x7f04a7378000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7f04a7378000
mmap(0x7f04a74f0000, 360448, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a0000) = 0x7f04a74f0000
mmap(0x7f04a7549000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f8000) = 0x7f04a7549000
mmap(0x7f04a754f000, 52976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f04a754f000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=470200, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 474296, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f04a72dc000
mprotect(0x7f04a72f2000, 364544, PROT_NONE) = 0
mmap(0x7f04a72f2000, 262144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f04a72f2000
mmap(0x7f04a7332000, 98304, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x56000) = 0x7f04a7332000
mmap(0x7f04a734b000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6e000) = 0x7f04a734b000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f04a72da000
arch_prctl(ARCH_SET_FS, 0x7f04a72dac40) = 0
set_tid_address(0x7f04a72daf10)         = 4436
set_robust_list(0x7f04a72daf20, 24)     = 0
rseq(0x7f04a72db5e0, 0x20, 0, 0x53053053) = 0
mprotect(0x7f04a7549000, 16384, PROT_READ) = 0
mprotect(0x7f04a734b000, 16384, PROT_READ) = 0
mprotect(0x7f04a756b000, 4096, PROT_READ) = 0
mprotect(0x7f04a7573000, 4096, PROT_READ) = 0
mprotect(0x555d7c3cd000, 4096, PROT_READ) = 0
mprotect(0x7f04a75e0000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7f04a7577000, 212039)          = 0
getrandom("\xb8\x55\x37\xc2\x3f\xdb\xb8\x99", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x555d7d0c8000
brk(0x555d7d0e9000)                     = 0x555d7d0e9000
geteuid()                               = 0
openat(AT_FDCWD, "/run/openrc-shutdown.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
getpid()                                = 4436
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=0, ...}, AT_EMPTY_PATH) = 0
write(3, "4436\n", 5)                   = 5
close(3)                                = 0
rt_sigaction(SIGINT, {sa_handler=0x555d7c3c9d70, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f04a738e8e0}, NULL, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x555d7c3c9d70, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f04a738e8e0}, NULL, 8) = 0
getuid()                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (No such file or directory)
close(3)                                = 0
newfstatat(AT_FDCWD, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=274, ...}, 0) = 0
newfstatat(AT_FDCWD, "/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=274, ...}, AT_EMPTY_PATH) = 0
read(3, "# Name Service Switch configurat"..., 4096) = 274
read(3, "", 4096)                       = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=274, ...}, AT_EMPTY_PATH) = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2077, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "root:x:0:0::/root:/bin/fish\nbin:"..., 4096) = 2077
close(3)                                = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
newfstatat(0, "", {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0x2), ...}, AT_EMPTY_PATH) = 0
readlink("/proc/self/fd/0", "/dev/pts/2", 4095) = 10
newfstatat(AT_FDCWD, "/dev/pts/2", {st_mode=S_IFCHR|0600, st_rdev=makedev(0x88, 0x2), ...}, 0) = 0
uname({sysname="Linux", nodename="arch", ...}) = 0
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3648, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=3648, ...}, AT_EMPTY_PATH) = 0
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 3648
lseek(3, -2321, SEEK_CUR)               = 1327
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 2321
close(3)                                = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f04a72daf10) = 4437
getpid()                                = 4436
socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
sendto(3, "<29>Jun 15 13:01:02 openrc-shutd"..., 72, MSG_NOSIGNAL, NULL, 0) = 72
unlink("/etc/nologin")                  = -1 ENOENT (No such file or directory)
unlink("/run/openrc-shutdown.pid")      = 0
newfstatat(AT_FDCWD, "/run/initctl", 0x7fffad95bab0, 0) = -1 ENOENT (No such file or directory)
uname({sysname="Linux", nodename="arch", ...}) = 0
access("/var/log/wtmpx", F_OK)          = -1 ENOENT (No such file or directory)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=4437, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
openat(AT_FDCWD, "/var/log/wtmp", O_WRONLY) = 4
alarm(0)                                = 0
rt_sigaction(SIGALRM, {sa_handler=0x7f04a74a7320, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f04a738e8e0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
alarm(10)                               = 0
fcntl(4, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
alarm(0)                                = 10
rt_sigaction(SIGALRM, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f04a738e8e0}, NULL, 8) = 0
lseek(4, 0, SEEK_END)                   = 705408
write(4, "\1\0\0\0\0\0\0\0~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
fcntl(4, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
close(4)                                = 0
openat(AT_FDCWD, "/run/openrc/init.ctl", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
newfstatat(4, "", {st_mode=S_IFIFO|0600, st_size=0, ...}, AT_EMPTY_PATH) = 0
write(4, "poweroff", 8)                 = 8
close(4)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++

Maybe a difference will stand out ?

Re: new installation refuses to shutdown

Reply #10
I've installed strace and used your command. Unfortunately I am not able to really understand the output. I've attached the output here, maybe one of you can read this properly.

Code: [Select]
IT-PC-001:[manuel_back]:~$ sudo strace -o ~/poweroff.txt  /usr/bin/openrc-shutdown --poweroff 0
IT-PC-001:[manuel_back]:~$ cat ~/poweroff.txt
execve("/usr/bin/openrc-shutdown", ["/usr/bin/openrc-shutdown", "--poweroff", "0"], 0x7ffdd2b3f690 /* 29 vars */) = 0
brk(NULL)                               = 0x55d1b3912000
arch_prctl(0x3001 /* ARCH_??? */, 0x7ffce70fe630) = -1 EINVAL (Das Argument ist ungültig)
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
openat(AT_FDCWD, "/etc/ld.so.cache", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=109631, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 109631, PROT_READ, MAP_PRIVATE, 3, 0) = 0x7f212fe78000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libeinfo.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0  \0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=26376, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f212fe76000
mmap(NULL, 31568, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f212fe6e000
mmap(0x7f212fe70000, 12288, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x2000) = 0x7f212fe70000
mmap(0x7f212fe73000, 4096, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f212fe73000
mmap(0x7f212fe74000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x5000) = 0x7f212fe74000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/librc.so.1", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0P0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=63472, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 65576, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f212fe5d000
mmap(0x7f212fe60000, 36864, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x3000) = 0x7f212fe60000
mmap(0x7f212fe69000, 12288, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xc000) = 0x7f212fe69000
mmap(0x7f212fe6c000, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0xe000) = 0x7f212fe6c000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/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\0P\224\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
pread64(3, "\4\0\0\0@\0\0\0\5\0\0\0GNU\0\2\0\0\300\4\0\0\0\3\0\0\0\0\0\0\0"..., 80, 848) = 80
pread64(3, "\4\0\0\0\24\0\0\0\3\0\0\0GNU\0`\337\35\363\37\2\247\262=\250>\216\371#5\230"..., 68, 928) = 68
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=2100888, ...}, AT_EMPTY_PATH) = 0
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, 2146032, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f212fc00000
mprotect(0x7f212fc28000, 1904640, PROT_NONE) = 0
mmap(0x7f212fc28000, 1540096, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x28000) = 0x7f212fc28000
mmap(0x7f212fda0000, 360448, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1a0000) = 0x7f212fda0000
mmap(0x7f212fdf9000, 24576, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x1f8000) = 0x7f212fdf9000
mmap(0x7f212fdff000, 52976, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_ANONYMOUS, -1, 0) = 0x7f212fdff000
close(3)                                = 0
openat(AT_FDCWD, "/usr/lib/libncursesw.so.6", O_RDONLY|O_CLOEXEC) = 3
read(3, "\177ELF\2\1\1\0\0\0\0\0\0\0\0\0\3\0>\0\1\0\0\0\0\0\0\0\0\0\0\0"..., 832) = 832
newfstatat(3, "", {st_mode=S_IFREG|0755, st_size=470200, ...}, AT_EMPTY_PATH) = 0
mmap(NULL, 474296, PROT_READ, MAP_PRIVATE|MAP_DENYWRITE, 3, 0) = 0x7f212fb8c000
mprotect(0x7f212fba2000, 364544, PROT_NONE) = 0
mmap(0x7f212fba2000, 262144, PROT_READ|PROT_EXEC, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x16000) = 0x7f212fba2000
mmap(0x7f212fbe2000, 98304, PROT_READ, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x56000) = 0x7f212fbe2000
mmap(0x7f212fbfb000, 20480, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|MAP_DENYWRITE, 3, 0x6e000) = 0x7f212fbfb000
close(3)                                = 0
mmap(NULL, 8192, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0) = 0x7f212fe5b000
arch_prctl(ARCH_SET_FS, 0x7f212fe5bb80) = 0
set_tid_address(0x7f212fe5be50)         = 3530
set_robust_list(0x7f212fe5be60, 24)     = 0
rseq(0x7f212fe5c520, 0x20, 0, 0x53053053) = 0
mprotect(0x7f212fdf9000, 16384, PROT_READ) = 0
mprotect(0x7f212fbfb000, 16384, PROT_READ) = 0
mprotect(0x7f212fe6c000, 4096, PROT_READ) = 0
mprotect(0x7f212fe74000, 4096, PROT_READ) = 0
mprotect(0x55d1b2d0c000, 4096, PROT_READ) = 0
mprotect(0x7f212fec8000, 8192, PROT_READ) = 0
prlimit64(0, RLIMIT_STACK, NULL, {rlim_cur=8192*1024, rlim_max=RLIM64_INFINITY}) = 0
munmap(0x7f212fe78000, 109631)          = 0
getrandom("\x76\x9f\xdb\x57\x13\x3e\xae\x88", 8, GRND_NONBLOCK) = 8
brk(NULL)                               = 0x55d1b3912000
brk(0x55d1b3933000)                     = 0x55d1b3933000
geteuid()                               = 0
openat(AT_FDCWD, "/run/openrc-shutdown.pid", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 3
getpid()                                = 3530
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=0, ...}, AT_EMPTY_PATH) = 0
write(3, "3530\n", 5)                   = 5
close(3)                                = 0
rt_sigaction(SIGINT, {sa_handler=0x55d1b2d08d70, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f212fc3e8e0}, NULL, 8) = 0
rt_sigaction(SIGTERM, {sa_handler=0x55d1b2d08d70, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f212fc3e8e0}, NULL, 8) = 0
getuid()                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
close(3)                                = 0
socket(AF_UNIX, SOCK_STREAM|SOCK_CLOEXEC|SOCK_NONBLOCK, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/var/run/nscd/socket"}, 110) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
close(3)                                = 0
newfstatat(AT_FDCWD, "/etc/nsswitch.conf", {st_mode=S_IFREG|0644, st_size=274, ...}, 0) = 0
newfstatat(AT_FDCWD, "/", {st_mode=S_IFDIR|0755, st_size=4096, ...}, 0) = 0
openat(AT_FDCWD, "/etc/nsswitch.conf", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=274, ...}, AT_EMPTY_PATH) = 0
read(3, "# Name Service Switch configurat"..., 4096) = 274
read(3, "", 4096)                       = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=274, ...}, AT_EMPTY_PATH) = 0
close(3)                                = 0
openat(AT_FDCWD, "/etc/passwd", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=1044, ...}, AT_EMPTY_PATH) = 0
lseek(3, 0, SEEK_SET)                   = 0
read(3, "root:x:0:0::/root:/bin/bash\nbin:"..., 4096) = 1044
close(3)                                = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
ioctl(0, TCGETS, {B38400 opost isig icanon echo ...}) = 0
newfstatat(0, "", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x2), ...}, AT_EMPTY_PATH) = 0
readlink("/proc/self/fd/0", "/dev/pts/2", 4095) = 10
newfstatat(AT_FDCWD, "/dev/pts/2", {st_mode=S_IFCHR|0620, st_rdev=makedev(0x88, 0x2), ...}, 0) = 0
uname({sysname="Linux", nodename="IT-PC-001", ...}) = 0
openat(AT_FDCWD, "/etc/localtime", O_RDONLY|O_CLOEXEC) = 3
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2200, ...}, AT_EMPTY_PATH) = 0
newfstatat(3, "", {st_mode=S_IFREG|0644, st_size=2200, ...}, AT_EMPTY_PATH) = 0
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 2200
lseek(3, -1392, SEEK_CUR)               = 808
read(3, "TZif2\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\7\0\0\0\7\0\0\0\0"..., 4096) = 1392
close(3)                                = 0
clone(child_stack=NULL, flags=CLONE_CHILD_CLEARTID|CLONE_CHILD_SETTID|SIGCHLD, child_tidptr=0x7f212fe5be50) = 3531
getpid()                                = 3530
socket(AF_UNIX, SOCK_DGRAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_UNIX, sun_path="/dev/log"}, 110) = 0
sendto(3, "<29>Jun 20 19:37:07 openrc-shutd"..., 72, MSG_NOSIGNAL, NULL, 0) = 72
unlink("/etc/nologin")                  = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
unlink("/run/openrc-shutdown.pid")      = 0
newfstatat(AT_FDCWD, "/run/initctl", 0x7ffce70fe510, 0) = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
uname({sysname="Linux", nodename="IT-PC-001", ...}) = 0
access("/var/log/wtmpx", F_OK)          = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
--- SIGCHLD {si_signo=SIGCHLD, si_code=CLD_EXITED, si_pid=3531, si_uid=0, si_status=0, si_utime=0, si_stime=0} ---
openat(AT_FDCWD, "/var/log/wtmp", O_WRONLY) = 4
alarm(0)                                = 0
rt_sigaction(SIGALRM, {sa_handler=0x7f212fd57320, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f212fc3e8e0}, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=0}, 8) = 0
alarm(10)                               = 0
fcntl(4, F_SETLKW, {l_type=F_WRLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
alarm(0)                                = 10
rt_sigaction(SIGALRM, {sa_handler=SIG_DFL, sa_mask=[], sa_flags=SA_RESTORER, sa_restorer=0x7f212fc3e8e0}, NULL, 8) = 0
lseek(4, 0, SEEK_END)                   = 71808
write(4, "\1\0\0\0\0\0\0\0~~\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"..., 384) = 384
fcntl(4, F_SETLKW, {l_type=F_UNLCK, l_whence=SEEK_SET, l_start=0, l_len=0}) = 0
close(4)                                = 0
openat(AT_FDCWD, "/run/openrc/init.ctl", O_WRONLY|O_CREAT|O_TRUNC, 0666) = 4
newfstatat(4, "", {st_mode=S_IFREG|0644, st_size=0, ...}, AT_EMPTY_PATH) = 0
write(4, "poweroff", 8)                 = 8
close(4)                                = 0
exit_group(0)                           = ?
+++ exited with 0 +++
the only thing I sort of understand is the
Code: [Select]
access("/etc/ld.so.preload", R_OK)      = -1 ENOENT (Datei oder Verzeichnis nicht gefunden)
and /etc/ld.so.preload is for reals missing on my machine...
edit: I've just realized, that this line is present at your output as well. So I guess that is not the issue...
edit edit: I just checked your output against mine. Besides the memory addresses, everything else seems absolutely the same...

Re: new installation refuses to shutdown

Reply #11
Is Artix the only distro with this problem or where you having this problem before with other distros?

Re: new installation refuses to shutdown

Reply #12
I'm not sure if this is even possible on openrc, but could it be some service that's blocking shutdown? Like if you manually bring down your services one by one and then run the shutdown command, does it work?