initial release of event notifier
This commit is contained in:
@@ -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
|
||||
Reference in New Issue
Block a user