From 47df147e7b98cd188a88e553cc508e7be90189fc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Cl=C3=A9ment=20Saillant?= Date: Mon, 15 Jun 2026 00:52:59 +0200 Subject: [PATCH] chore(tower): systemd service + weekly timer --- tower/systemd/lisael-content.service | 13 +++++++++++++ tower/systemd/lisael-refresh.service | 7 +++++++ tower/systemd/lisael-refresh.timer | 9 +++++++++ 3 files changed, 29 insertions(+) create mode 100644 tower/systemd/lisael-content.service create mode 100644 tower/systemd/lisael-refresh.service create mode 100644 tower/systemd/lisael-refresh.timer 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