aboutsummaryrefslogtreecommitdiffstats
path: root/systemd/ykfde-notify.service
diff options
context:
space:
mode:
authorGravatar Christian Hesse <mail@eworm.de>2016-02-26 23:31:31 +0100
committerGravatar Christian Hesse <mail@eworm.de>2016-05-22 20:44:26 +0200
commit0d250492b5ce1f01040898da7eba7db5df4f07be (patch)
treeca5a5d879d95d994bdb8b71374219a630853cbba /systemd/ykfde-notify.service
parentb6cc20e9c27ddf4b4ca8a58ef7aa990885229157 (diff)
downloadmkinitcpio-ykfde-0d250492b5ce1f01040898da7eba7db5df4f07be.tar.gz
mkinitcpio-ykfde-0d250492b5ce1f01040898da7eba7db5df4f07be.tar.zst
drop shell script and implement with systemd units
Diffstat (limited to 'systemd/ykfde-notify.service')
-rw-r--r--systemd/ykfde-notify.service18
1 files changed, 18 insertions, 0 deletions
diff --git a/systemd/ykfde-notify.service b/systemd/ykfde-notify.service
new file mode 100644
index 0000000..e77f634
--- /dev/null
+++ b/systemd/ykfde-notify.service
@@ -0,0 +1,18 @@
+# (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
+ConditionPathExists=/run/ykfde.pid
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=/usr/bin/pkill -USR1 --pidfile /run/ykfde.pid
+ExecStart=/usr/bin/sleep 0.2