システムタイマー装置は、いくつかの異なるサービスを開始する。

システムタイマー装置は、いくつかの異なるサービスを開始する。

5秒ごとに接続されたデバイスを起動するシステムタイマーがあります。これは期待どおりに機能しますが(ログをスパムに送信することは別の問題です)、通常は起動しない他のシステムデバイスも起動しているようです。私のユニットファイルは次のとおりです。

/etc/system.d/system/make_temps.service

[Unit]
Description=Puts all the temperatures in one file

[Service]
LogLevelMax=6
Environment=SYSTEMD_LOG_LEVEL=debug
Type=oneshot
ExecStart=/usr/local/bin/make_temps

/etc/systemd/system/make_temps.timer

[Unit]
Description=Timer for unit putting the temperatures in one file

[Timer]
OnActiveSec=0sec
OnUnitActiveSec=5sec
AccuracySec=500msec

[Install]
WantedBy=timers.target

私はこれを使って他のプログラムのためのファイルを準備します。 市販。私はそれが重要だとは思いませんが、確実にするためにこの情報を提供しています。

Journalctlを使用してログを確認すると、次の出力が表示されます。

Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in First Boot Wizard being skipped.
Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in File System Check on Root Device being skipped.
Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in Rebuild Dynamic Linker Cache being skipped.
Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in Store a System Token in an EFI Variable being skipped.
Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in Rebuild Hardware Database being skipped.
Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in Rebuild Journal Catalog being skipped.
Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in Commit a transient machine-id on disk being skipped.
Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in Create System Users being skipped.
Apr 06 20:40:59 t490 systemd[1]: Condition check resulted in Update is Completed being skipped.
Apr 06 20:40:59 t490 systemd[1]: Starting Puts all the temperatures in one file...
Apr 06 20:40:59 t490 systemd[1]: make_temps.service: Succeeded.
Apr 06 20:40:59 t490 systemd[1]: Finished Puts all the temperatures in one file.
Apr 06 20:40:59 t490 audit[1]: SERVICE_START pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=make_temps comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 06 20:40:59 t490 audit[1]: SERVICE_STOP pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=make_temps comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'
Apr 06 20:40:59 t490 kernel: audit: type=1130 audit(1586198459.428:1369): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=make_temps comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success' 
Apr 06 20:40:59 t490 kernel: audit: type=1131 audit(1586198459.428:1370): pid=1 uid=0 auid=4294967295 ses=4294967295 msg='unit=make_temps comm="systemd" exe="/usr/lib/systemd/systemd" hostname=? addr=? terminal=? res=success'

,,,,,,,,,, なぜサービスが systemd-firstboot.service開始されますか?​​​systemd-fsck-root.serviceldconfig.servicesystemd-boot-system-token.servicesystemd-hwdb-update.servicesystemd-journal-catalog-update.servicesystemd-machine-id-commit.servicesystemd-sysusers.servicesystemd-update-done.service

この情報は毎回表示されるわけではありませんが、ほぼ毎回表示されます。私が関連性があると思うのは、他のシステムではこれらのメッセージが表示されず(単位を使用しないため)、タイマーデバイスを停止すると他のサービスもトリガーされないためです。なぜこのようなことが起こるのか分からないので、すべてのヒントに心から感謝します。

私はカーネルでArch Linuxを使用しており、5.5.13-arch2-1システムのバージョンは次のとおりです。

systemd 245 (245.4-2-arch) +PAM +AUDIT -SELINUX -IMA -APPARMOR +SMACK -SYSVINIT +UTMP +LIBCRYPTSETUP +GCRYPT +GNUTLS +ACL +XZ +LZ4 +SECCOMP +BLKID +ELFUTILS +KMOD +IDN2 -IDN +PCRE2 default-hierarchy=hybrid

追加情報を提供できる場合や、この情報を投稿するのに適した場所ではない場合は、お知らせください。

ベストアンサー1

これはArchフォーラムからのものです。関連性がある可能性があります。エントロピーの問題ではない限り、解決策ではない可能性があります。これは解決策かもしれません。https://bbs.archlinux.org/viewtopic.php?id=253767

おすすめ記事