From efa77cc10335363c96c872228159a62c98da3524 Mon Sep 17 00:00:00 2001 From: YASH PANDEY Date: Tue, 5 Mar 2024 02:17:24 +0530 Subject: [PATCH 1/4] anacron.md highlight corrections --- docs/guides/automation/anacron.md | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/docs/guides/automation/anacron.md b/docs/guides/automation/anacron.md index c0a122caec..2a9a0e09b2 100644 --- a/docs/guides/automation/anacron.md +++ b/docs/guides/automation/anacron.md @@ -15,7 +15,7 @@ update : 2021-10-20 ## Assumptions -* You have understood the basic knowledge of bash, python or other scripting or programming tools, and want to run the script automatically. +* You have the basic knowledge of bash, python or other scripting or programming tools, and want to run the script automatically. * You connected in as the root user, or switch to root with `su - root`. ## `anacron` Introduction @@ -93,11 +93,12 @@ For more configuration file information, [browse the manual page](https://man7.o ## User use -To make certain files run within these automatically defined times, all you need to do is to copy the script file to the relevant directory and verify that it has ** x execution permission (chmod +x) ** . Therefore, you only need to let the system automatically run the script at one of these scheduled times, which simplifies the automation task. +To make certain files run within these automatically defined times, all you need to do is to copy the script file to the relevant directory and verify that it has **execution permission (chmod +x)**. Therefore, you only need to let the system automatically run the script at one of these scheduled times, which simplifies the automation task. + Let us use cron.daily to illustrate the run process of /etc/anacrontab: -1. `anacron` reads the ** /var/spool/anacron/cron.daily ** file, and the content of the file shows the time of the last run. +1. `anacron` reads the **/var/spool/anacron/cron.daily** file, and the content of the file shows the time of the last run. 2. Compared with the current time, if the difference between the two times exceeds 1 day, the cron.daily job will run. 3. This work can only run from 03:00-22:00. 4. Verify whether a file runs after 5 minutes after booting. When the first one runs, it will be randomly delayed for 0~45 minutes to run the next one. From 56c52e4009cbcc85c375a4569e957d1d01c41176 Mon Sep 17 00:00:00 2001 From: YASH PANDEY Date: Tue, 5 Mar 2024 12:42:22 +0530 Subject: [PATCH 2/4] Code Bug Fixes in cronie.md --- docs/guides/automation/cronie.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/automation/cronie.md b/docs/guides/automation/cronie.md index 82fd5f88da..d5cefda2f5 100644 --- a/docs/guides/automation/cronie.md +++ b/docs/guides/automation/cronie.md @@ -22,7 +22,7 @@ GNU/Linux provides the *cron* system, which is a time-based `cron` jobs program * **crontab** -command to maintain `crontab` (task schedule) for each user; * **crond.service** -cronie's daemon, you can manage the daemon by `systemctl start | restart | stop | status` ; * **/etc/crontab** -Assign cron jobs to different users, usually we are more accustomed to using `crontab -e` . For example, if you are currently logged in as the root user, type `crontab -e` and you will see specific cron jobs in the file /var/spool/cron/root after saving. -* **/var/log/cron \* ** -Cronie's log, by default, does log rotation and ends with a date suffix. \* Here means wildcard +* **/var/log/cron** -Cronie's log, by default, does log rotation and ends with a date suffix. Here, it means wildcard. * **anacron** -part of cronie . For more information about `anacron`, see [anacron-automation commands](anacron.md). ## `crontab` Command From 3bc18feddcb6aa94487744e70af1b7576c1b008f Mon Sep 17 00:00:00 2001 From: YASH PANDEY Date: Tue, 5 Mar 2024 17:05:26 +0530 Subject: [PATCH 3/4] Rechecked and refractored the fix --- docs/guides/automation/cronie.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/docs/guides/automation/cronie.md b/docs/guides/automation/cronie.md index d5cefda2f5..54d98c491b 100644 --- a/docs/guides/automation/cronie.md +++ b/docs/guides/automation/cronie.md @@ -22,7 +22,7 @@ GNU/Linux provides the *cron* system, which is a time-based `cron` jobs program * **crontab** -command to maintain `crontab` (task schedule) for each user; * **crond.service** -cronie's daemon, you can manage the daemon by `systemctl start | restart | stop | status` ; * **/etc/crontab** -Assign cron jobs to different users, usually we are more accustomed to using `crontab -e` . For example, if you are currently logged in as the root user, type `crontab -e` and you will see specific cron jobs in the file /var/spool/cron/root after saving. -* **/var/log/cron** -Cronie's log, by default, does log rotation and ends with a date suffix. Here, it means wildcard. +* **/var/log/cron** \* -Cronie's log, by default, does log rotation and ends with a date suffix. Here, it means wildcard. * **anacron** -part of cronie . For more information about `anacron`, see [anacron-automation commands](anacron.md). ## `crontab` Command From 6a64d58052ae64359bfdecdfc46f1e3569a69e27 Mon Sep 17 00:00:00 2001 From: YASH PANDEY Date: Tue, 5 Mar 2024 23:22:52 +0530 Subject: [PATCH 4/4] Minor corrections in olivetin.md --- docs/guides/automation/olivetin.md | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/guides/automation/olivetin.md b/docs/guides/automation/olivetin.md index c8a4a9dc87..1842b70810 100644 --- a/docs/guides/automation/olivetin.md +++ b/docs/guides/automation/olivetin.md @@ -34,13 +34,13 @@ To follow this guide you will need: * A computer running Rocky Linux * A minimal amount of comfort or experience with the command line. * Root access, or the ability to use `sudo`. -* To learn the basics of YAML. It is not hard; you'll get the hang of it down below. +* To learn the basics of YAML. It is not hard, you'll get the hang of it down below. ## Installing OliveTin OliveTin includes pre-built RPMs. Just download the latest release here for your architecture, and install it. If you're following this guide on a workstation with a graphical desktop, just download the file and double-click on it in your file manager of choice. -If you are installing this app on a server, then you can download it on your work machine and upload it by way of SSH/SCP/SFTP, or do the thing some people say not to do, and download it with `wget`. +If you are installing this app on a server, then you can download it on your work machine and upload it by way of SSH/SCP/SFTP, or do the thing some people say not to do and download it with `wget`. For example: