initial release of event notifier

This commit is contained in:
jenz
2022-06-19 13:40:27 +02:00
parent e4712524d2
commit 23a9c1e41c
13 changed files with 479 additions and 0 deletions
@@ -0,0 +1,10 @@
[Unit]
Description=runs discord event notifier
[Service]
Type=simple
User=nonroot
Environment=PYTHONUNBUFFERED=1
Environment=PATH=/home/nonroot/event_scrapy/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin
WorkingDirectory=/home/nonroot/event_scrapy
ExecStart=/home/nonroot/event_scrapy/discord_event.py
@@ -0,0 +1,8 @@
[Unit]
Description=Discord event notifier launcher
[Timer]
OnCalendar=*-*-* *:55
[Install]
WantedBy=multi-user.target
@@ -0,0 +1,10 @@
[Unit]
Description=runs event web scraping on the unloze forum
[Service]
Type=simple
User=nonroot
Environment=PYTHONUNBUFFERED=1
Environment=PATH=/home/nonroot/event_scrapy/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin
WorkingDirectory=/home/nonroot/event_scrapy
ExecStart=/home/nonroot/event_scrapy/main.py
@@ -0,0 +1,8 @@
[Unit]
Description=Decides when to scrape the event section on the forum
[Timer]
OnCalendar=*-*-* *:0,30
[Install]
WantedBy=multi-user.target