From 5f3a3f39fbec3bec90ffda337dadc549dae7195b Mon Sep 17 00:00:00 2001 From: ndwarshuis Date: Sun, 14 Feb 2021 19:40:08 -0500 Subject: [PATCH] ADD systemd unit templates --- scripts/mount-sshfs@.service | 7 +++++++ scripts/mount-veracrypt@.service | 7 +++++++ 2 files changed, 14 insertions(+) create mode 100644 scripts/mount-sshfs@.service create mode 100644 scripts/mount-veracrypt@.service diff --git a/scripts/mount-sshfs@.service b/scripts/mount-sshfs@.service new file mode 100644 index 0000000..938ca01 --- /dev/null +++ b/scripts/mount-sshfs@.service @@ -0,0 +1,7 @@ +[Unit] +Description=Mount sshfs directory for %i + +[Service] +Type=forking +ExecStart=/usr/bin/sshfs ${TARGET} ${MOUNTPOINT} +ExecStop=/usr/bin/fusermount -u ${MOUNTPOINT} \ No newline at end of file diff --git a/scripts/mount-veracrypt@.service b/scripts/mount-veracrypt@.service new file mode 100644 index 0000000..7d0c7c5 --- /dev/null +++ b/scripts/mount-veracrypt@.service @@ -0,0 +1,7 @@ +[Unit] +Description=Mount veracrypt volume for %i + +[Service] +Type=forking +ExecStart=%h/.bin/mount.veracrypt ${BW_NAME} ${VOLUME} ${MOUNTPOINT} +ExecStop=%h/.bin/umount.veracrypt ${MOUNTPOINT} \ No newline at end of file