Centos7

fprintd: ** 消息:沒有設備在使用,退出

  • September 28, 2016

我不斷收到以下消息/var/log/messages

4/7/2016, 11:03:49 AM   fprintd[3277]   Launching FprintObject
4/7/2016, 11:03:49 AM   fprintd[3277]   ** Message: D-Bus service launched with name: net.reactivated.Fprint
4/7/2016, 11:03:49 AM   fprintd[3277]   ** Message: entering main loop
4/7/2016, 11:04:20 AM   fprintd[3277]   ** Message: No devices in use, exit

在以下系統上:

$ cat /etc/redhat-release 
CentOS Linux release 7.2.1511 (Core) 
$ uname -a
Linux X 3.10.0-327.13.1.el7.x86_64 #1 SMP Thu Mar 31 16:04:38 UTC 2016 x86_64 x86_64 x86_64 GNU/Linux
$ 

即使服務被禁用:

$ systemctl status fprintd
● fprintd.service - Fingerprint Authentication Daemon
  Loaded: loaded (/usr/lib/systemd/system/fprintd.service; static; vendor preset: disabled)
  Active: inactive (dead)
    Docs: man:fprintd(1)

Apr 07 11:05:27 X fprintd[4871]: Launching FprintObject
Apr 07 11:05:27 X fprintd[4871]: ** Message: D-Bus service launched with name: net.reactivated.Fprint
Apr 07 11:05:27 X fprintd[4871]: ** Message: entering main loop
Apr 07 11:05:58 X fprintd[4871]: ** Message: No devices in use, exit
Apr 07 11:18:22 X systemd[1]: Starting Fingerprint Authentication Daemon...
Apr 07 11:18:22 X systemd[1]: Started Fingerprint Authentication Daemon.
Apr 07 11:18:22 X fprintd[7010]: Launching FprintObject
Apr 07 11:18:22 X fprintd[7010]: ** Message: D-Bus service launched with name: net.reactivated.Fprint
Apr 07 11:18:22 X fprintd[7010]: ** Message: entering main loop
Apr 07 11:18:52 X fprintd[7010]: ** Message: No devices in use, exit
$ 

我如何真正禁用,所以這根本不會出現在我的日誌中?

$ systemctl status dbus
● dbus.service - D-Bus System Message Bus
  Loaded: loaded (/usr/lib/systemd/system/dbus.service; static; vendor preset: disabled)
  Active: active (running) since Thu 2016-04-07 11:03:16 EDT; 57min ago
Main PID: 904 (dbus-daemon)
  CGroup: /system.slice/dbus.service
          └─904 /bin/dbus-daemon --system --address=systemd: --nofork --nopidfile --systemd-activation

Apr 07 11:14:35 X dbus[904]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 07 11:14:35 X dbus-daemon[904]: dbus[904]: [system] Successfully activated service 'org.freedesktop.hostname1'
Apr 07 11:16:25 X dbus-daemon[904]: dbus[904]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Apr 07 11:16:25 X dbus[904]: [system] Activating service name='org.freedesktop.problems' (using servicehelper)
Apr 07 11:16:25 X dbus[904]: [system] Successfully activated service 'org.freedesktop.problems'
Apr 07 11:16:25 X dbus-daemon[904]: dbus[904]: [system] Successfully activated service 'org.freedesktop.problems'
Apr 07 11:18:22 X dbus-daemon[904]: dbus[904]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service'
Apr 07 11:18:22 X dbus[904]: [system] Activating via systemd: service name='net.reactivated.Fprint' unit='fprintd.service'
Apr 07 11:18:22 X dbus[904]: [system] Successfully activated service 'net.reactivated.Fprint'
Apr 07 11:18:22 X dbus-daemon[904]: dbus[904]: [system] Successfully activated service 'net.reactivated.Fprint'
$ 

我在 CentOS 板上問了同樣的問題(fprintd: ** Message: No devices in use, exit - CentOS),但沒有得到答案,但無論如何..

該服務不是“禁用”的,它是“靜態的”。這意味著它通常不能直接啟動,而是由 systemd 響應某些事件而啟動。

由於該服務旨在驅動指紋讀取器,因此可以肯定它會在控制台登錄嘗試期間被觸發。

如果您沒有指紋讀取器並且不打算擁有指紋讀取器,則可以屏蔽該服務,以便它永遠無法啟動,即使它被解除安裝並重新安裝,即使依賴項要求它:

systemctl mask fprintd.service

這些消息(相對)無害並且可以被忽略,前提是您有額外的幾 KB 磁碟空間來儲存它們。如果您將來確實打算使用指紋讀取器,您可能希望保持此服務不變,或者至少仔細記錄您已屏蔽該服務,以便將來您仍然了解它。

引用自:https://serverfault.com/questions/768839