From 41f880edbdb0ca53518c6048785793ae552300fe Mon Sep 17 00:00:00 2001 From: Michael Stanclift Date: Tue, 29 Mar 2022 16:14:25 -0500 Subject: [PATCH] Updated Installing (markdown) --- Installing.md | 18 +++--------------- 1 file changed, 3 insertions(+), 15 deletions(-) diff --git a/Installing.md b/Installing.md index 21ffced..a44e611 100644 --- a/Installing.md +++ b/Installing.md @@ -83,24 +83,12 @@ You can check for successful pull attempts by running: `./gravity-sync.sh logs` ## Automation -Automation of sync is accomplished by adding an execution of the script to the user's crontab file. As Gravity Sync won't make any changes if it doesn't detect a difference to sync, then the impact should be minor to your systems. +Automation of sync is accomplished by adding an execution of the script to host's systemd configuration. As Gravity Sync won't make any changes if it doesn't detect a difference to sync, then the impact should be minor to your systems. ```bash ./gravity-sync.sh automate ``` -Select the frequency per hour (in minutes) that you'd like to sync and that's it. +Automation tasks within systemd are configured by default to run every 5-10 minutes after being started. (This is 5 minutes + a random timer < 5 minutes.) Replications will automatically attempt for the first time 2 minutes after the system is powered on. -Now, make another small adjustment to your primary settings and wait until anointed time to see if your changes have been synchronized. If so, profit! If not, start from the beginning. From this point forward any block list changes you make to the primary will reflect on the secondary within the frequency you select. - -If you'd like to see the log of what was run the last crontab, you can view that output by running: - -```bash -./gravity-sync.sh cron -``` - -Keep in mind if your cron task has never run, you will not see any valid output from this command. - -### Adjusting Automation - -You can verify your existing automation entry by running `crontab -l` and see it listed at the bottom of the crontab file. If you decide to remove or change your frequency (as of version 1.8.3) you can run `./gravity-sync.sh automate` again and pick a new timing, including setting it to 0 to disable automation. \ No newline at end of file +Now, make another small adjustment to your primary settings and wait until anointed time to see if your changes have been synchronized. If so, profit! If not, start from the beginning. From this point forward any block list changes you make to the primary will reflect on the secondary within the frequency you select. \ No newline at end of file