Add example systemd service and timer

This commit is contained in:
DJ Lucas 2017-09-30 00:49:49 -05:00
parent 63ca0511c9
commit ecdb27dff2
3 changed files with 23 additions and 1 deletions

View File

@ -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

View File

@ -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

10
systemd/update-pki.timer Normal file
View File

@ -0,0 +1,10 @@
[Unit]
Description=Update PKI/TLS certificate store weekly
[Timer]
OnCalendar=Sun 02:00:00
Persistent=true
[Install]
WantedBy=timers.target