Skip to content

Commit

Permalink
Add example systemd service and timer
Browse files Browse the repository at this point in the history
  • Loading branch information
djlucas committed Sep 30, 2017
1 parent 63ca051 commit ecdb27d
Show file tree
Hide file tree
Showing 3 changed files with 23 additions and 1 deletion.
2 changes: 1 addition & 1 deletion CHANGELOG
Original file line number Diff line number Diff line change
@@ -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
Expand Down
12 changes: 12 additions & 0 deletions systemd/update-pki.service
Original file line number Diff line number Diff line change
@@ -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 changes: 10 additions & 0 deletions systemd/update-pki.timer
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
[Unit]
Description=Update PKI/TLS certificate store weekly

[Timer]
OnCalendar=Sun 02:00:00
Persistent=true

[Install]
WantedBy=timers.target

0 comments on commit ecdb27d

Please sign in to comment.