initial commit of direct message monitoring
This commit is contained in:
@@ -0,0 +1,10 @@
|
||||
[Unit]
|
||||
Description=monitors Direct Messages for urls and attachments to make sure people dont post problematic shit
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=root
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
Environment=PATH=/home/nonroot/stoat_view_messages/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games:/snap/bin
|
||||
WorkingDirectory=/home/nonroot/stoat_view_messages
|
||||
ExecStart=/home/nonroot/stoat_view_messages/main.py
|
||||
@@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=restart message viewing service once every day at midnight
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-1,2,3,4,5,6,7,8,9,10,11,12,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31 00:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
Reference in New Issue
Block a user