CentOS7 systemd-timer


 
Thread Tools Search this Thread
Operating Systems Linux CentOS7 systemd-timer
# 1  
Old 01-21-2016
Error 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.

Code:
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...


Last edited by Don Cragun; 01-27-2016 at 04:07 AM.. Reason: Add CODE tags.
# 2  
Old 01-21-2016
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
# 3  
Old 01-21-2016
the question so tried,come on!~
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Programming

Makefile instructions to create directories (CentOS7 , GNU Make 3.82)

Hello, My makefiles are set up to generate an environment specific build directory based on the local configuration and some values passed to make. It generally looks like, # compilers, may be passed to make CC++ = g++ FCOMP = gfortran # version of program, may be passed to make ver =... (4 Replies)
Discussion started by: LMHmedchem
4 Replies

2. UNIX for Beginners Questions & Answers

Stop http service, yum still work CentOS7

Can anyone explain me why yum still working when I stop http service on my localmachine. If I'm not wrong, yum repository use port 80 and 443, so stop http service should technicly stop possibility to install packages ? (6 Replies)
Discussion started by: veloxcbr
6 Replies

3. UNIX for Advanced & Expert Users

CentOS7 restoring file capabilities

Quite an obscure question I think. We have a rebuild process for remote sites that allows us to PXE rebuild a till (actually a PC with a touch screen and various fancy bits) running CentOS. The current CentOS5 tills work just fine with a tar image restore and some personalisation. Sadly,... (4 Replies)
Discussion started by: rbatte1
4 Replies

4. UNIX for Advanced & Expert Users

Smb & nmb not starting at boot - CentOS7

I would like the smb and nmb to start on boot. In the terminal (as root) I did: /sbin/chkconfig smb --addor chkconfig --add sambaor chkconfig --add /sbin/smbdresault is message like below : error reading information on service smb: No such file or directory Please use CODE tags as... (2 Replies)
Discussion started by: momed131
2 Replies

5. UNIX for Advanced & Expert Users

Move NIS Server Solaris 10 to CentOS7

Hi, I hope somebody can help me. I wand to Move my NIS server on Solaris 10 (there are 2 Slaves on Linux) to CentOS7. Do you have any procedures or experience to do this? Thanking in anticipation! (2 Replies)
Discussion started by: Penguin99
2 Replies

6. Red Hat

Snmpd dying on centos7.1

Hello All, SNMPD dying after 2 mins once it started. Here is the configuration Oct 12 04:43:00 localhost systemd: Starting Simple Network Management Protocol (SNMP) Daemon.... Oct 12 04:43:00 localhost snmpd: dlopen failed: /usr/lib64/libcmaX64.so: cannot open shared object file: No such... (1 Reply)
Discussion started by: shekar777
1 Replies

7. SuSE

Starting mgetty with systemd?

Hello All, OS: openSUSE 13.1 (Bottle) (armv7hl) uname -a: Linux linux.site 3.14.14-cubox-i #1 SMP Sat Sep 13 03:48:24 UTC 2014 armv7l armv7l armv7l GNU/Linux So this is my first attempt at starting a service at boot with systemd. I've done this with inittab in the past, but I'm having... (0 Replies)
Discussion started by: mrm5102
0 Replies

8. UNIX for Advanced & Expert Users

Systemd

Hallo I don't know where to put my question so I put it here. I want that systemd let run a script but only on shutdown or reboot and before the system umount the mounted devices. I look on google but only a little information is found and not working Until no, I don't find an solution for... (1 Reply)
Discussion started by: thailand
1 Replies

9. UNIX for Advanced & Expert Users

Systemd

I am writing a program that must determine certain things about services. How can I, or my program, determine which services are started automatically when a given target becomes active. It is my impression that just looking in the target's .wants directory is inadequate because of other... (2 Replies)
Discussion started by: Brandon9000
2 Replies
Login or Register to Ask a Question