Mailinglist Archive: opensuse-factory (1578 mails)

< Previous Next >
Re: [opensuse-factory] Runlevels in 12.1?
  • From: Anders Johansson <ajh@xxxxxxxx>
  • Date: Sat, 12 Nov 2011 21:19:45 +0100
  • Message-id: <2588226.GR6KgG0U7M@carolin>
On Saturday 12 November 2011 21:05:10 Carlos E. R. wrote:
On Saturday, 2011-11-12 at 19:50 +0100, Rüdiger Meier wrote:
strace -f init 3

Looks like greek to me.

The condensed version of your strace reveals the relevant parts

[...]
socket(PF_FILE, SOCK_STREAM|SOCK_CLOEXEC, 0) = 3
connect(3, {sa_family=AF_FILE, path="/run/systemd/private"}, 22) = 0

connecting to systemd

sendto(3, "AUTH EXTERNAL 30\r\n", 18, MSG_NOSIGNAL, NULL, 0) = 18
read(3, "OK 581621e96ee78e1ab08a929b00000"..., 2048) = 37
sendto(3, "NEGOTIATE_UNIX_FD\r\n", 19, MSG_NOSIGNAL, NULL, 0) = 19
read(3, "AGREE_UNIX_FD\r\n", 2048) = 15
sendto(3, "BEGIN\r\n", 7, MSG_NOSIGNAL, NULL, 0) = 7

The hand shake

gettid() = 19366
mmap(NULL, 548864, PROT_READ|PROT_WRITE, MAP_PRIVATE|
MAP_ANONYMOUS, -1, 0) =
0x7ffbcd8cd000 sendmsg(3, {msg_name(0)=NULL,
msg_iov(2)=[{"l\1\0\1$\0\0\0\1\0\0\0\240\0\0\0\1\1o\0\31\0\0\0/org/fre"...,
176}, {"\20\0\0\0runlevel3.target\0\0\0\0\7\0\0\0isol"..., 36}],
msg_controllen=0, msg_flags=0}, MSG_NOSIGNAL) = 212 poll([{fd=3,
events=POLLIN}], 1, 25000) = 1 ([{fd=3, revents=POLLIN}])

Telling systemd to go to runlevel 3

recvmsg(3,
{msg_name(0)=NULL,
msg_iov(1)=[{"l\2\1\1'\0\0\0\1\0\0\0\17\0\0\0\5\1u\0\1\0\0\0\10\1g\0\1o\0\0
"..., 2048}], msg_controllen=0, msg_flags=MSG_CMSG_CLOEXEC},
MSG_CMSG_CLOEXEC) = 71 recvmsg(3, 0x7fffb23c6e90,
MSG_CMSG_CLOEXEC) = -1

This presumably contains the result, but unfortunately only the first few
bytes are included in this strace (use -s with some suitably large value to
capture the entirety of such strings)

I'd say the tool does what it's supposed to, and if it doesn't work, systemd
will have to reveal why. Maybe there is a permission problem? Maybe some other
error? Doesn't it log anything?

Anders
--
To unsubscribe, e-mail: opensuse-factory+unsubscribe@xxxxxxxxxxxx
To contact the owner, e-mail: opensuse-factory+owner@xxxxxxxxxxxx

< Previous Next >
This Thread
Follow Ups