Move cron info from notes to docs
This commit is contained in:
parent
60cf86a484
commit
482cf8c288
|
@ -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
23
docs/cron.md
Normal 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
|
||||||
|
|
||||||
|
```
|
15
notes.txt
15
notes.txt
|
@ -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
|
||||||
########################################
|
########################################
|
||||||
|
|
Loading…
Reference in a new issue