website/systemd
2023-11-24 10:49:45 +11:00
..
conservancy-www-cleanup.service Add conservancy-www-db.service to repository, document Systemd services 2023-11-24 10:01:34 +11:00
conservancy-www-db.service Add conservancy-www-db.service to repository, document Systemd services 2023-11-24 10:01:34 +11:00
conservancy-www-linkchecker.service Add linkchecker Systemd service and timer 2023-11-24 10:49:45 +11:00
conservancy-www-linkchecker.timer Add linkchecker Systemd service and timer 2023-11-24 10:49:45 +11:00
conservancy-www-update.service Add conservancy-www-db.service to repository, document Systemd services 2023-11-24 10:01:34 +11:00
conservancy-www-update.sh Add conservancy-www-db.service to repository, document Systemd services 2023-11-24 10:01:34 +11:00
conservancy-www-update.timer systemd: Replace cron infrastructure. 2019-11-23 18:20:09 -05:00
README.md Add conservancy-www-db.service to repository, document Systemd services 2023-11-24 10:01:34 +11:00

SystemD services

Installing

Install all SystemD services 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
systemctl enable conservancy-www-db.service

Website updates

Monitor the website update service 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

Note that the update script does not run migrate.

Fundraiser/sustainer database updates

The conservancy-www-db.service applies SQL updates to the website database. These include the fundraising total and sustainers to be publicly acknowledged.