La unidad del temporizador systemd inicia varios otros servicios.

La unidad del temporizador systemd inicia varios otros servicios.

Tengo un temporizador systemd que inicia una unidad asociada cada 5 segundos. Esto funciona como se esperaba (envía spam al registro, pero ese es otro problema) pero aparentemente también inicia algunas otras unidades systemd, que normalmente no deberían iniciarse. Estos son los archivos de mi unidad:

/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

Utilizo esto para preparar un archivo para otro programa: pensarfan. Proporciono esta información sólo para estar seguro, aunque no creo que importe.

Cuando reviso mis registros con journalctl, obtengo el siguiente resultado:

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'

¿Por qué comienzan los servicios systemd-firstboot.service, systemd-fsck-root.service, ldconfig.service, systemd-boot-system-token.service, systemd-hwdb-update.service, systemd-journal-catalog-update.service, systemd-machine-id-commit.service, systemd-sysusers.service? systemd-update-done.service

He de decir que estos mensajes no aparecen siempre, pero sí casi siempre. La razón por la que creo que está relacionado es que en mis otros sistemas estos mensajes no aparecen (ya que no uso estas unidades) y cuando paro la unidad del temporizador, los otros servicios tampoco se activan. No tengo idea de por qué sucede esto y estaría muy agradecido por cada pista.

Utilizo Arch Linux en kernel 5.5.13-arch2-1y mi versión de systemd es:

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

Si puedo proporcionar alguna otra información o si este no es el lugar correcto para publicar esto, hágamelo saber.

Respuesta1

Esto es de los foros de Arch, tal vez relacionado; no es una solución a menos que sea un problema de entropía, entonces tal vez sea una solución.https://bbs.archlinux.org/viewtopic.php?id=253767

información relacionada