This is an old revision of the document!
Folositi comanda lxc-info
pentru a afla PID-ul containerului ct1
. Acest PID este al procesului init
corespunzator containerului. Restul proceselor din container vor fi copii ai acestui proces init
.
Atasati-va la consola containerului, logati-va, apoi detasati-va de la consola.
Pe saisp-vm-1, afisati intreaga ierarhie de procese:
root@saisp-vm-1:~# pstree -p init(1)─┬─acpid(1542) ├─atd(1565) ├─cron(1652) ├─dbus-daemon(1602) ├─exim4(1902) ├─getty(1959) ├─getty(1960) ├─getty(1961) ├─getty(1962) ├─getty(1963) ├─getty(1964) ├─lxc-start(8267)───init(8269)─┬─getty(8508) │ ├─getty(8510) │ ├─getty(8511) │ ├─getty(8512) │ ├─login(8509)───bash(8751) │ └─sshd(8478) ├─rpc.idmapd(1237) ├─rpc.statd(1223) ├─rpcbind(1195) ├─rsyslogd(1480)─┬─{rsyslogd}(1485) │ ├─{rsyslogd}(1486) │ └─{rsyslogd}(1487) ├─sshd(1935)───sshd(1965)───bash(1967)───pstree(8762) └─udevd(280)