summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorOlivier Gayot <olivier.gayot@sigexec.com>2019-01-24 16:09:44 +0100
committerOlivier Gayot <olivier.gayot@sigexec.com>2019-01-24 16:09:44 +0100
commit5577b2c2285cbe0fd8bf4b0d6d3d86dc05f3c644 (patch)
treef58f78aab89fa7277db4b0fd3a4ea9abe3554977
parent8b3ddd6fa2495cec5cab5ea308c8374c82ad9daa (diff)
Add systemd unit to generate a new key
The unit is templated with the name of the selector. Signed-off-by: Olivier Gayot <olivier.gayot@sigexec.com>
-rw-r--r--sigexec-gen-dkim-key@.service7
1 files changed, 7 insertions, 0 deletions
diff --git a/sigexec-gen-dkim-key@.service b/sigexec-gen-dkim-key@.service
new file mode 100644
index 0000000..d558580
--- /dev/null
+++ b/sigexec-gen-dkim-key@.service
@@ -0,0 +1,7 @@
+[Unit]
+Description=Generate a new DKIM key for sigexec.com.
+
+[Service]
+User=opendkim
+Type=oneshot
+ExecStart=/usr/local/bin/sigexec.com-gen-dkim-key.sh %I