diff --git a/tower/systemd/lisael-content.service b/tower/systemd/lisael-content.service new file mode 100644 index 0000000..2de86df --- /dev/null +++ b/tower/systemd/lisael-content.service @@ -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 diff --git a/tower/systemd/lisael-refresh.service b/tower/systemd/lisael-refresh.service new file mode 100644 index 0000000..59d44c4 --- /dev/null +++ b/tower/systemd/lisael-refresh.service @@ -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 diff --git a/tower/systemd/lisael-refresh.timer b/tower/systemd/lisael-refresh.timer new file mode 100644 index 0000000..dacb3e5 --- /dev/null +++ b/tower/systemd/lisael-refresh.timer @@ -0,0 +1,9 @@ +[Unit] +Description=Weekly Lisael Box podcast refresh + +[Timer] +OnCalendar=Sun 04:00 +Persistent=true + +[Install] +WantedBy=timers.target