From f267efa66b5dcd156303330ffa5522899768f99f Mon Sep 17 00:00:00 2001 From: leafee98 Date: Mon, 24 Mar 2025 01:12:12 +0800 Subject: [PATCH] Add systemd service and timer --- copy-cert.service | 7 +++++++ copy-cert.timer | 10 ++++++++++ 2 files changed, 17 insertions(+) create mode 100644 copy-cert.service create mode 100644 copy-cert.timer diff --git a/copy-cert.service b/copy-cert.service new file mode 100644 index 0000000..398d75e --- /dev/null +++ b/copy-cert.service @@ -0,0 +1,7 @@ +[Unit] +Description=Copy certificates to needed location + +[Service] +Type=oneshot +ExecStart=/usr/local/bin/copy-cert.py + diff --git a/copy-cert.timer b/copy-cert.timer new file mode 100644 index 0000000..8fa92b4 --- /dev/null +++ b/copy-cert.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Copy certificates to needed location + +[Timer] +OnCalendar=daily +Persistent=true + +[Install] +WantedBy=timers.target +