I think if you just kill it, perhaps kill -9 since its not behaving, the parent process
will restart it.
I wonder why it's misbehaving and not responding to the signal.
Linux services are not my forte, so that might be bad advice. I hail from the Android
world, so my knowledge
here is limited.
-----Original Message-----
From: Chenxi Z <cxzhang1981(a)hotmail.com>
Sent: Tuesday, December 15, 2020 5:10 PM
To: tpm2(a)lists.01.org
Subject: [tpm2] how to gracefuly stop tpm2-abrmd daemon
Can I know how to gracefully stop tpm2-abrmd daemon or force to stop it?
From the log below, I see the deamon was not able to be stopped and auto
restarted.
[root@hostname-1 ~]# service tpm2-abrmd stop Redirecting to /bin/systemctl
stop tpm2-abrmd.service (It takes about 3-5 minutes and returns back to
console)
[root@hostname-1 ~]# service tpm2-abrmd status ● tpm2-abrmd.service - TPM2
Access Broker and Resource Management Daemon
Loaded: loaded (/usr/lib/systemd/system/tpm2-abrmd.service; enabled;
vendor preset: disabled)
Active: active (running) since Tue 2020-12-15 15:02:49 PST; 1min 36s ago
Main PID: 3389167 (tpm2-abrmd)
IO: 0B read, 0B written
Tasks: 4
Memory: 1.5M
CPU: 16ms
CGroup: /system.slice/tpm2-abrmd.service
└─3389167 /usr/sbin/tpm2-abrmd Dec 15 15:02:49 hostname-1 tpm2-
abrmd[3389167]: ipc_frontend_connect Dec 15 15:02:49 hostname-1 tpm2-
abrmd[3389167]: tcti_set_property Dec 15 15:02:49 hostname-1 tpm2-
abrmd[3389167]: Allocating 0x1050 bytes for SAPI context Dec 15 15:02:49
hostname-1 tpm2-abrmd[3389167]: tpm2_set_property Dec 15 15:02:49
hostname-1 tpm2-abrmd[3389167]: tpm2_set_property Dec 15 15:02:49
hostname-1 tpm2-abrmd[3389167]: tpm2_init_tpm Dec 15 15:02:49 hostname-1
tpm2-abrmd[3389167]: Got proxy object for DBus daemon.
Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]: on_bus_acquired:
com.intel.tss2.Tabrmd Dec 15 15:02:49 hostname-1 systemd[1]: Started TPM2
Access Broker and Resource Management Daemon Dec 15 15:02:49 hostname-1
tpm2-abrmd[3389167]: on_name_acquired: com.intel.tss2.Tabrmd ~
[root@hostname-1~]# journalctl -u tpm2-abrmd -e
-- Logs begin at Tue 2020-12-15 15:00:03 PST, end at Tue 2020-12-15 15:03:24 PST. -
- Dec 15 15:01:15 hostname-1 systemd[1]: Stopping TPM2 Access Broker and
Resource Management Daemon...
Dec 15 15:02:45 hostname-1 systemd[1]: tpm2-abrmd.service: State 'stop-
sigterm' timed out. Killing.
Dec 15 15:02:45 hostname-1 systemd[1]: tpm2-abrmd.service: Killing process
3370307 (tpm2-abrmd) with signal SIGKILL.
Dec 15 15:02:45 hostname-1 systemd[1]: tpm2-abrmd.service: Killing process
3370308 (tpm2-abrmd) with signal SIGKILL.
Dec 15 15:02:45 hostname-1 systemd[1]: tpm2-abrmd.service: Killing process
3370309 (gmain) with signal SIGKILL.
Dec 15 15:02:45 hostname-1 systemd[1]: tpm2-abrmd.service: Killing process
3370311 (gdbus) with signal SIGKILL.
Dec 15 15:02:45 hostname-1 systemd[1]: tpm2-abrmd.service: Main process
exited, code=killed, status=9/KILL Dec 15 15:02:45 hostname-1 systemd[1]: tpm2-
abrmd.service: Failed with result 'timeout'.
Dec 15 15:02:45 hostname-1 systemd[1]: Stopped TPM2 Access Broker and
Resource Management Daemon.
Dec 15 15:02:49 hostname-1 systemd[1]: Starting TPM2 Access Broker and
Resource Management Daemon... <————— tpm2-abrmd auto restarted
here
Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]: tabrmd startup Dec 15
15:02:49 hostname-1 tpm2-abrmd[3389167]: tcti_conf before:
"device:/dev/tpm0"
Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]: logging to stdout Dec 15
15:02:49 hostname-1 tpm2-abrmd[3389167]: tcti_conf after: "device:/dev/tpm0"
Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]: entering g_main_loop Dec 15
15:02:49 hostname-1 tpm2-abrmd[3389167]: init_thread_func start Dec 15
15:02:49 hostname-1 tpm2-abrmd[3389167]: random_class_init Dec 15 15:02:49
hostname-1 tpm2-abrmd[3389167]: opening entropy source: /dev/urandom Dec
15 15:02:49 hostname-1 tpm2-abrmd[3389167]: reading from entropy source:
/dev/urandom Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]:
connection_manager_set_property
Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]: max_connections: 27
Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]: IpcFrontendDbus set
bus_name: com.intel.tss2.Tabrmd Dec 15 15:02:49 hostname-1 tpm2-
abrmd[3389167]: ipc_frontend_connect Dec 15 15:02:49 hostname-1 tpm2-
abrmd[3389167]: tcti_set_property Dec 15 15:02:49 hostname-1 tpm2-
abrmd[3389167]: Allocating 0x1050 bytes for SAPI context Dec 15 15:02:49
hostname-1 tpm2-abrmd[3389167]: tpm2_set_property Dec 15 15:02:49
hostname-1 tpm2-abrmd[3389167]: tpm2_set_property Dec 15 15:02:49
hostname-1 tpm2-abrmd[3389167]: tpm2_init_tpm Dec 15 15:02:49 hostname-1
tpm2-abrmd[3389167]: Got proxy object for DBus daemon.
Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]: on_bus_acquired:
com.intel.tss2.Tabrmd Dec 15 15:02:49 hostname-1 systemd[1]: Started TPM2
Access Broker and Resource Management Daemon.
Dec 15 15:02:49 hostname-1 tpm2-abrmd[3389167]: on_name_acquired:
com.intel.tss2.Tabrmd
[root@hostname-1~]# rpm -qa | grep tpm2
tpm2-tss-2.4.3.x86_64
tpm2-tools-4.3.0.x86_64
tpm2-abrmd-2.3.3.x86_64
[root@hostname-1 ~]# cat /etc/os-release NAME="CentOS Linux"
VERSION="8 (Core)"
ID="centos"
ID_LIKE="rhel fedora"
VERSION_ID="8"
... ...
_______________________________________________
tpm2 mailing list -- tpm2(a)lists.01.org
To unsubscribe send an email to tpm2-leave(a)lists.01.org
%(web_page_url)slistinfo%(cgiext)s/%(_internal_name)s