CentOS7 systemd-timer

hi moring everyone,

i has used systemd-timer running the task, i set every 5 second execute 1 times,but the systemd-timer don't by that also random times execute.

what's reason.

testest.timer  configure
------------------------------------------------------------------------
[Unit]
Description=Runs HostName Running Every 5 sec

[Timer]
OnBootSec=1min
OnUnitActiveSec=5
Unit=testtest.service

[Install]
WantedBy=multi-user.target

journalctl log------------------------------------------------------------
Jan 21 18:49:04 centos7 systemd[1]: Started testtest.
Jan 21 18:49:04 centos7 systemd[1]: Starting testtest...
Jan 21 18:49:18 centos7 fprintd[9761]: ** Message: No devices in use, exit
Jan 21 18:49:18 centos7 systemd[1]: Started testtest.
Jan 21 18:49:18 centos7 systemd[1]: Starting testtest...
Jan 21 18:49:41 centos7 systemd[1]: Started testtest.
Jan 21 18:49:41 centos7 systemd[1]: Starting testtest...
Jan 21 18:50:01 centos7 kernel: SELinux: initialized (dev tmpfs, type tmpfs), uses transition SIDs
Jan 21 18:50:01 centos7 systemd[1]: Started testtest.
Jan 21 18:50:01 centos7 systemd[1]: Starting testtest...

Hi,

this is probably down to system resource, your job is being submitted to the run queue every 5 seconds - doesn't mean that there will be resource there to run the job.

Regards

Gull04

the question so tried,come on!~