diff --git a/systemd/README.md b/systemd/README.md new file mode 100644 index 0000000000000000000000000000000000000000..0119860d6e21932473c3009f996e529f3a520c2f --- /dev/null +++ b/systemd/README.md @@ -0,0 +1,17 @@ +Install with: + + cp systemd/conservancy-www-*.{service,timer} /etc/systemd/system + systemctl enable conservancy-www-cleanup.service + systemctl start conservancy-www-cleanup.service + systemctl enable conservancy-www-update.timer + systemctl start conservancy-www-update.timer + +Monitor with: + + systemctl list-timers --all + journalctl --catalog --follow --unit conservancy-www-update.service + +Updates will fail unless `/var/www/website` has a git upstream, so set that with: + + git remote add upstream https://k.sfconservancy.org/website + git branch --set-upstream-to=upstream/master master