C'è un processo in corso che sto cercando di capire perché è in esecuzione e che cosa fa. Il server è un server Linux Ubuntu in esecuzione su AWS. Esecuzione 16.04.
Il processo in questione è:
root 829 0.0 0.0 16116 2888 ? Ss Jun19 0:04 /var/tmp/cloud-init/cloud-init-dhcp-zaislidv/dhclient -1 -v -
Quando ho eseguito lsof -p 829:
sudo lsof -p 829
COMMAND PID USER FD TYPE DEVICE SIZE/OFF NODE NAME
dhclient 829 root cwd DIR 259,1 4096 2 /
dhclient 829 root rtd DIR 259,1 4096 2 /
dhclient 829 root txt REG 259,1 487248 1536424 /var/tmp/cloud-init/cloud-init-dhcp-zaislidv/dhclient (deleted)
dhclient 829 root mem REG 259,1 47600 1993 /lib/x86_64-linux-gnu/libnss_files-2.23.so
dhclient 829 root mem REG 259,1 14608 1982 /lib/x86_64-linux-gnu/libdl-2.23.so
dhclient 829 root mem REG 259,1 1868984 1980 /lib/x86_64-linux-gnu/libc-2.23.so
dhclient 829 root DEL REG 259,1 2123 /lib/x86_64-linux-gnu/libisc-export.so.160.0.0
dhclient 829 root DEL REG 259,1 2125 /lib/x86_64-linux-gnu/libdns-export.so.162.1.3
dhclient 829 root mem REG 259,1 162632 1978 /lib/x86_64-linux-gnu/ld-2.23.so
dhclient 829 root 0u CHR 1,3 0t0 6 /dev/null
dhclient 829 root 1u CHR 1,3 0t0 6 /dev/null
dhclient 829 root 2u CHR 1,3 0t0 6 /dev/null
dhclient 829 root 3u unix 0xffff880036debc00 0t0 12925 type=DGRAM
dhclient 829 root 5u pack 12942 0t0 ALL type=SOCK_RAW
dhclient 829 root 6u IPv4 12943 0t0 UDP *:bootpc
Su 200 server questo è l'unico che esegue questo processo.
Inserisco la directory / var / tmp / cloud-init e ovviamente vuota e non vedo questo eseguibile nemmeno lì.
Qualche idea su ciò che è e dove può essere configurato per l'esecuzione?
Quando eseguo lo stato di systemctl --no-pager cloud-init-local.service --full:
systemctl status --no-pager cloud-init-local.service --full
● cloud-init-local.service - Initial cloud-init job (pre-networking)
Loaded: loaded (/lib/systemd/system/cloud-init-local.service; enabled; vendor preset: enabled)
Active: active (exited) since Tue 2018-06-19 15:31:39 UTC; 5 months 24 days ago
Main PID: 859 (code=exited, status=0/SUCCESS)
Tasks: 1
Memory: 8.6M
CPU: 10.408s
CGroup: /system.slice/cloud-init-local.service
└─829 /var/tmp/cloud-init/cloud-init-dhcp-zaislidv/dhclient -1 -v -lf /var/tmp/cloud-init/cloud-init-dhcp-zaislidv/dhcp.leases -pf /var/tmp/cloud-init/cloud-init-dhcp-zaislidv/dhclient.pid ens5 -sf /bin/true
Dec 12 20:37:38 hostname dhclient[829]: bound to IP -- renewal in 1599 seconds.
Dec 12 21:04:17 hostname dhclient[829]: DHCPREQUEST of IP on ens5 to 10.80.10.1 port 67 (xid=0x36c118d4)
Dec 12 21:04:17 hostname dhclient[829]: DHCPACK of IP from IP
Dec 12 21:04:17 hostname dhclient[829]: can't create /var/tmp/cloud-init/cloud-init-dhcp-zaislidv/dhcp.leases: No such file or directory
Dec 12 21:04:17 hostname dhclient[829]: can't create /var/tmp/cloud-init/cloud-init-dhcp-zaislidv/dhcp.leases: No such file or directory
Dec 12 21:04:17 hostname dhclient[829]: bound to IP -- renewal in 1433 seconds.
Dec 12 21:28:10 hostname dhclient[829]: DHCPREQUEST of IP on ens5 to IP port 67 (xid=0x36c118d4)
Dec 12 21:28:10 hostname dhclient[829]: DHCPACK of IP from IP
Dec 12 21:28:10 hostname dhclient[829]: can't create /var/tmp/cloud-init/cloud-init-dhcp-zaislidv/dhcp.leases: No such file or directory
Dec 12 21:28:10 hostname dhclient[829]: bound to IP -- renewal in 1353 seconds.
Grazie!