summaryrefslogtreecommitdiff
path: root/cryptfs.service.in
diff options
context:
space:
mode:
Diffstat (limited to 'cryptfs.service.in')
-rw-r--r--cryptfs.service.in13
1 files changed, 13 insertions, 0 deletions
diff --git a/cryptfs.service.in b/cryptfs.service.in
new file mode 100644
index 0000000..be1003e
--- /dev/null
+++ b/cryptfs.service.in
@@ -0,0 +1,13 @@
+[Unit]
+Description=Decrypt and mount encrypted partitions.
+Requires=network-online.target local-fs.target
+After=network-online.target local-fs.target
+
+[Service]
+Type=oneshot
+RemainAfterExit=yes
+ExecStart=#BINDIR#/cryptfs
+ExecStop=#BINDIR#/cryptfs -u
+
+[Install]
+WantedBy=multi-user.target