From ecdb27dff2ba402fbf01717de9be020a2e460a69 Mon Sep 17 00:00:00 2001 From: DJ Lucas Date: Sat, 30 Sep 2017 00:49:49 -0500 Subject: [PATCH] Add example systemd service and timer --- CHANGELOG | 2 +- systemd/update-pki.service | 12 ++++++++++++ systemd/update-pki.timer | 10 ++++++++++ 3 files changed, 23 insertions(+), 1 deletion(-) create mode 100644 systemd/update-pki.service create mode 100644 systemd/update-pki.timer diff --git a/CHANGELOG b/CHANGELOG index 350df79..9ce5b32 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,4 +1,4 @@ -0.5 - +0.5 - Add example systemd timer and service units 0.4 - Add email and code signing flat file certificate stores 0.3 - Generate single file stores (Java and GNUTLS) using main OpenSSL store as source to avoid duplicates diff --git a/systemd/update-pki.service b/systemd/update-pki.service new file mode 100644 index 0000000..6e79d09 --- /dev/null +++ b/systemd/update-pki.service @@ -0,0 +1,12 @@ +[Unit] +Description=Update PKI/TLS certificate store +Documentation=man:make-ca(8) +DefaultDependencies=no +After=local-fs.target +Before=shutdown.target + +[Service] +Type=oneshot +RemainAfterExit=yes +ExecStart=/usr/sbin/make-ca -g + diff --git a/systemd/update-pki.timer b/systemd/update-pki.timer new file mode 100644 index 0000000..12b3de0 --- /dev/null +++ b/systemd/update-pki.timer @@ -0,0 +1,10 @@ +[Unit] +Description=Update PKI/TLS certificate store weekly + +[Timer] +OnCalendar=Sun 02:00:00 +Persistent=true + +[Install] +WantedBy=timers.target +