About this list Date view Thread view Subject view Author view Attachment view

From: Christian Mayrhuber (christian.mayrhuber_at_gmx.net)
Date: Wed 13 Oct 2004 - 13:38:35 BST


Hi,

here is the strace of the last action of a vserver stop
- reboot - :-)

...
...
Rebooting...
execve("/sbin/reboot", ["reboot", "-d", "-f", "-i"], [/* 23 vars */]) = 0
uname({sys="Linux", node="distcc", ...}) = 0
brk(0) = 0x804b000
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
=0xb7fe9000
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.preload", O_RDONLY) = -1 ENOENT (No such file or
directory)
open("/etc/ld.so.cache", O_RDONLY) = 3
fstat64(3, {st_mode=S_IFREG|0644, st_size=8320, ...}) = 0
old_mmap(NULL, 8320, PROT_READ, MAP_PRIVATE, 3, 0) = 0xb7fe6000
close(3) = 0
access("/etc/ld.so.nohwcap", F_OK) = -1 ENOENT (No such file or
directory)
open("/lib/tls/libc.so.6", O_RDONLY) = 3
read(3, "\177ELF\1\1\1\0\0\0\0\0\0\0\0\0\3\0\3\0\1\0\0\0\340X\1"..., 512) =
512
fstat64(3, {st_mode=S_IFREG|0644, st_size=1279076, ...}) = 0
old_mmap(NULL, 1289388, PROT_READ|PROT_EXEC, MAP_PRIVATE, 3, 0) = 0xb7eab000
old_mmap(0xb7fdb000, 36864, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED, 3,
0x12f000) = 0xb7fdb000
old_mmap(0xb7fe4000, 7340, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_FIXED|
MAP_ANONYMOUS, -1, 0) = 0xb7fe4000
close(3) = 0
old_mmap(NULL, 4096, PROT_READ|PROT_WRITE, MAP_PRIVATE|MAP_ANONYMOUS, -1, 0)
=0xb7eaa000
set_thread_area({entry_number:-1 -> 6, base_addr:0xb7eaa460, limit:1048575,
seg_32bit:1, contents:0, read_exec_only:0, limit_in_pages:1,
seg_not_present:0, useable:1}) = 0
munmap(0xb7fe6000, 8320) = 0
geteuid32() = 0
chdir("/") = 0
sync() = 0
rt_sigprocmask(SIG_BLOCK, [CHLD], [], 8) = 0
rt_sigaction(SIGCHLD, NULL, {SIG_DFL}, 8) = 0
rt_sigprocmask(SIG_SETMASK, [], NULL, 8) = 0
nanosleep({2, 0}, {2, 0}) = 0
socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFCONF, 0xbffff448) = 0
ioctl(3, SIOCSIFFLAGS, 0xbffff450) = 0
ioctl(3, SIOCSIFFLAGS, 0xbffff490) = 0
close(3) = 0
reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_RESTART) = 0
reboot(LINUX_REBOOT_MAGIC1, LINUX_REBOOT_MAGIC2, LINUX_REBOOT_CMD_CAD_OFF) = 0
kill(1, SIGCONT) = -1 ESRCH (No such process)
exit_group(0)

I guess one of these ioctls shuts down the interfaces:

socket(PF_INET, SOCK_DGRAM, IPPROTO_IP) = 3
ioctl(3, SIOCGIFCONF, 0xbffff448) = 0
ioctl(3, SIOCSIFFLAGS, 0xbffff450) = 0
ioctl(3, SIOCSIFFLAGS, 0xbffff490) = 0
close(3) = 0

contents of /dev:

lrwxrwxrwx 1 root root 13 Oct 5 12:42 MAKEDEV -> /sbin/MAKEDEV
crw-rw-rw- 1 root root 1, 7 Oct 1 10:01 full
prw------- 1 root root 0 Sep 30 14:23 initctl
srw-rw-rw- 1 root root 0 Oct 13 13:00 log
crw-rw-rw- 1 root root 1, 3 Oct 1 10:01 null
crw-rw-rw- 1 root root 5, 2 Oct 1 10:01 ptmx
drwxr-xr-x 2 root root 0 Oct 13 12:58 pts
crw-r--r-- 1 root root 1, 8 Oct 1 10:01 random
crw-rw-rw- 1 root root 5, 0 Oct 1 10:01 tty
crw-r--r-- 1 root root 1, 9 Oct 1 10:01 urandom
prw-r----- 1 root adm 0 Oct 4 08:09 xconsole
crw-rw-rw- 1 root root 1, 5 Oct 1 10:01 zero

-- 
lg, Chris
_______________________________________________
Vserver mailing list
Vserver_at_list.linux-vserver.org
http://list.linux-vserver.org/mailman/listinfo/vserver


About this list Date view Thread view Subject view Author view Attachment view
[Next/Previous Months] [Main vserver Project Homepage] [Howto Subscribe/Unsubscribe] [Paul Sladen's vserver stuff]
Generated on Wed 13 Oct 2004 - 13:31:15 BST by hypermail 2.1.3