LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 01-30-2020, 05:59 AM   #1
p12funk
LQ Newbie
 
Registered: Aug 2018
Distribution: LM 18.1, MX linux
Posts: 7

Rep: Reputation: Disabled
Anacron not running in systemd?


I have been using anacron to do daily backups for some time with no problems on my Linux Mint 18.1 system. On another laptop I installed Linux Mint 19.2 and used the same steps to backup, but it did not work. LM 19.2 is systemd and that may be the problem.

If I force it, anacron -d -f it will perform the backup. If I shut down for a few days and boot, it does not run the back up. It seems that anacron is not running on the LM 19.2 systemd machine unless it is started manually.

My question is: Is there an easy way to run anacron jobs in LM 19.2 without having to study systemd and systemd timers? I believe I have read that there are a couple of anacron offshoot programs that make anacron more compatible with systemd. Is this necessary to run anacron in systemd?
 
Old 01-30-2020, 09:49 AM   #2
michaelk
Moderator
 
Registered: Aug 2002
Posts: 19,690

Rep: Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215Reputation: 3215
Mint has both a systemd anacron service and timer. Make sure they are enabled and running.

Last edited by michaelk; 01-30-2020 at 09:53 AM.
 
Old 02-01-2020, 05:58 AM   #3
p12funk
LQ Newbie
 
Registered: Aug 2018
Distribution: LM 18.1, MX linux
Posts: 7

Original Poster
Rep: Reputation: Disabled
Sorry!

Sorry all. I am running a dual boot with Mint 19.2 and MX Linux. I found that on MX I had made a mistake in the name of the bash script to run for backup. It was off by a character in anacrontab! It works now. I could also not get it to run in Mint 19.2. But I logged in today an it ran ok. Probably the date in /var/spool showed it had already run, so of course it didn't. Or else I did not wait for the 2 minute delay. Anyway that back up also runs now. The fact that I had a problem in 2 different operating systems convinced me there was something wrong, but it was simply human error....twice. I am marking this as solved, and am sorry for wasting your time.
 
  


Reply

Tags
anacron, backup, systemd


Thread Tools Search this Thread
Search this Thread:

Advanced Search

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: What is Anacron and usage of Anacron in Linux LXer Syndicated Linux News 0 01-14-2015 06:30 AM
LXer: What is Anacron and usage of Anacron in Linux LXer Syndicated Linux News 0 01-14-2015 02:00 AM
anacron, run as user, not running scripts. Permissions problem? quixote9 Linux - Software 1 04-23-2012 12:07 PM
[SOLVED] Anacron jobs running twice a day and weekly jobs not running at all... sapeurcamembert Linux - General 0 02-28-2012 09:20 PM
anacron not running CarLash Mandriva 0 05-25-2005 08:36 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 08:05 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration