chore(tower): systemd service + weekly timer
This commit is contained in:
@@ -0,0 +1,13 @@
|
||||
[Unit]
|
||||
Description=Lisael Box content push server (POST /register on :9555)
|
||||
After=network-online.target
|
||||
Wants=network-online.target
|
||||
|
||||
[Service]
|
||||
ExecStart=/usr/bin/python3 /home/clems/lisael-content/lisael_server.py
|
||||
Restart=always
|
||||
RestartSec=5
|
||||
User=clems
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
||||
@@ -0,0 +1,7 @@
|
||||
[Unit]
|
||||
Description=Lisael Box podcast refresh (RSS -> staging)
|
||||
|
||||
[Service]
|
||||
Type=oneshot
|
||||
ExecStart=/usr/bin/python3 /home/clems/lisael-content/lisael_refresh.py
|
||||
User=clems
|
||||
@@ -0,0 +1,9 @@
|
||||
[Unit]
|
||||
Description=Weekly Lisael Box podcast refresh
|
||||
|
||||
[Timer]
|
||||
OnCalendar=Sun 04:00
|
||||
Persistent=true
|
||||
|
||||
[Install]
|
||||
WantedBy=timers.target
|
||||
Reference in New Issue
Block a user