LinuxQuestions.org
Latest LQ Deal: Latest LQ Deals
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Server
User Name
Password
Linux - Server This forum is for the discussion of Linux Software used in a server related context.

Notices


Reply
  Search this Thread
Old 04-22-2022, 01:11 AM   #1
vucni45
Member
 
Registered: Aug 2021
Posts: 38

Rep: Reputation: Disabled
systemd


hi,
I know that systemd will start unit.timer lets say at 9.00.Somehow scheduler inform systemd to start that unit at 9.00?
 
Old 04-22-2022, 01:44 AM   #2
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
no, unit.timer will start when you boot. https://wiki.archlinux.org/title/Systemd/Timers
(would be nice to use better title)
 
Old 04-22-2022, 04:23 AM   #3
vucni45
Member
 
Registered: Aug 2021
Posts: 38

Original Poster
Rep: Reputation: Disabled
what system component inform that timer to run at 9?
is this the system clock?

Last edited by vucni45; 04-22-2022 at 04:38 AM.
 
Old 04-22-2022, 05:19 AM   #4
pan64
LQ Addict
 
Registered: Mar 2012
Location: Hungary
Distribution: debian/ubuntu/suse ...
Posts: 21,840

Rep: Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308Reputation: 7308
https://opensource.com/article/20/7/systemd-timers
 
1 members found this post helpful.
Old 04-22-2022, 09:45 AM   #5
vucni45
Member
 
Registered: Aug 2021
Posts: 38

Original Poster
Rep: Reputation: Disabled
hi,
The timer unit will be enabled and start at boot and the service unit will be disabled-it will be started by timer unit and after execution will stop.right?

thank you
 
Old 04-24-2022, 02:57 AM   #6
ondoho
LQ Addict
 
Registered: Dec 2013
Posts: 19,872
Blog Entries: 12

Rep: Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053Reputation: 6053
Quote:
Originally Posted by vucni45 View Post
The timer unit will be enabled and start at boot and the service unit will be disabled-it will be started by timer unit and after execution will stop.right?
Depends on the unit configuration files, i.e. someunit.timer and someunit.service.

It's simple really: systemd is PID 1 and runs all the time. I don't think it starts someunit.timer as a separate process - it simply looks what the timer says, when it should execute its service.

You are asking wide open question that are better answered by reading documentation.
systemd has excellent documentation, both offline (man pages on your machine) and online.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
LXer: The Story Behind ‘init’ and ‘systemd’: Why ‘init’ Needed to be Replaced with ‘systemd’ in Linu LXer Syndicated Linux News 1 04-07-2017 11:33 PM
Can't access full journalctl from script via systemd service even though user is in systemd-journal group iwtbf Linux - Newbie 0 02-19-2016 02:44 PM
LXer: Why pro-systemd and anti-systemd people will never get along LXer Syndicated Linux News 0 05-15-2015 11:44 PM
LXer: Is systemd as bad as boycott systemd is trying to make it? LXer Syndicated Linux News 0 09-03-2014 05:50 PM
Boot Delay 30min: systemd-analyze blame systemd-tmpfiles-setup.service BGHolmes Fedora 0 07-27-2011 09:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Server

All times are GMT -5. The time now is 04:01 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration