added systemctl setup
This commit is contained in:
parent
0a9c1f1394
commit
c63aeb605c
12
jenz_ban_detector/systemctl/receive.service
Normal file
12
jenz_ban_detector/systemctl/receive.service
Normal file
@ -0,0 +1,12 @@
|
||||
[Unit]
|
||||
Description=flask app that receives info
|
||||
|
||||
[Service]
|
||||
Type=simple
|
||||
User=nonroot
|
||||
Environment=PYTHONUNBUFFERED=1
|
||||
Environment=PATH=/home/nonroot/receive_motd_requests/venv/bin:/usr/local/bin:/usr/bin:/bin:/usr/local/games:/usr/games
|
||||
WorkingDirectory=/home/nonroot/receive_motd_requests
|
||||
ExecStart=/home/nonroot/receive_motd_requests/app.py
|
||||
Restart=always
|
||||
RuntimeMaxSec=6d
|
8
jenz_ban_detector/systemctl/receive.timer
Normal file
8
jenz_ban_detector/systemctl/receive.timer
Normal file
@ -0,0 +1,8 @@
|
||||
[Unit]
|
||||
Description=Flask app for receiving info
|
||||
|
||||
[Timer]
|
||||
OnCalendar=*-*-1,3,7,11,15,19,23,27,31 00:00:00
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user