Move cron info from notes to docs

This commit is contained in:
KemoNine 2020-08-01 00:00:56 +00:00
parent 60cf86a484
commit 482cf8c288
3 changed files with 24 additions and 15 deletions

View file

@ -12,3 +12,4 @@ This folder contains a bunch of general information on how to get the base of a
* [Slideshow Prep (REQUIRED)](slideshow_prep.md) * [Slideshow Prep (REQUIRED)](slideshow_prep.md)
* [Slideshow Setup (REQUIRED)](slideshow.md) * [Slideshow Setup (REQUIRED)](slideshow.md)
* [Email Notifications (OPTIONAL)](email_notifications.md) * [Email Notifications (OPTIONAL)](email_notifications.md)
* [cron / Scheduler (REQUIRED)](cron.md)

23
docs/cron.md Normal file
View file

@ -0,0 +1,23 @@
# cron/Scheduler
The below commands will setup a cron daemon (scheduler) for running things like backups, statistic gathering and more via a schedule. While technically not required, we *strongly* recommend using cron for backups so you get the output via e-mail (or similar). This is also required if you want to monitor resource utilization via ```munin```.
## Important Notes
* This assumes you have setup ```msmtp``` for email notifications
## Setup
``` sh
pacman -S cronie
mkdir /etc/systemd/system/cronie.service.d
cat > /etc/systemd/system/cronie.service.d/override.conf <<EOF
[Service]
ExecStart=
ExecStart=/usr/bin/crond -n -m '/usr/bin/msmtp -t'
EOF
systemctl daemon-reload
systemctl enable --now cronie
```

View file

@ -1,18 +1,3 @@
########################################
# Cron (needed for email output of backup jobs)
########################################
pacman -S cronie
mkdir /etc/systemd/system/cronie.service.d
cat > /etc/systemd/system/cronie.service.d/override.conf <<EOF
[Service]
ExecStart=
ExecStart=/usr/bin/crond -n -m '/usr/bin/msmtp -t'
EOF
systemctl daemon-reload
systemctl enable --now cronie
######################################## ########################################
# restic backups # restic backups
######################################## ########################################