aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/ykfde-notify.service
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-05-28 23:25:25 +0200
committerGravatar Christian Hesse <mail@eworm.de>2016-05-28 23:25:25 +0200
commitca67c46edf1c0543ce58bd075c565e1cb9a5a926 (patch)
treed5c026c4113960d8828695e99a7e40e2482c162d /systemd/ykfde-notify.service
parentb6cc20e9c27ddf4b4ca8a58ef7aa990885229157 (diff)
parent21075238bba7c633fc84657322391664f1770368 (diff)
downloadmkinitcpio-ykfde-ca67c46edf1c0543ce58bd075c565e1cb9a5a926.tar.gz
mkinitcpio-ykfde-ca67c46edf1c0543ce58bd075c565e1cb9a5a926.tar.zst
Merge branch 'systemd-units'
Diffstat (limited to 'systemd/ykfde-notify.service')
-rw-r--r--systemd/ykfde-notify.service22
1 files changed, 22 insertions, 0 deletions
diff --git a/systemd/ykfde-notify.service b/systemd/ykfde-notify.service
new file mode 100644
index 0000000..04a4d46
--- /dev/null
+++ b/systemd/ykfde-notify.service
@@ -0,0 +1,22 @@
+# (C) 2016 by Christian Hesse <mail@eworm.de>
+#
+# This software may be used and distributed according to the terms
+# of the GNU General Public License, incorporated herein by reference.
+
+[Unit]
+Description=Notify ykfde about key
+DefaultDependencies=no
+Before=cryptsetup-pre.target
+Wants=cryptsetup-pre.target
+Requires=ykfde-2f.service
+After=ykfde-2f.service
+ConditionPathExists=/run/ykfde.pid
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/pkill -USR1 --pidfile /run/ykfde.pid
+# ykfde started from udev needs a moment to set up the key
+# in store. It is out of systemd control, so wait a moment
+# here.
+ExecStart=/usr/bin/sleep 0.2