diff options
author | Alex Auvolat <alex@adnab.me> | 2023-01-17 12:45:46 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2023-01-17 12:45:46 +0100 |
commit | d47dd5aa3882aea1a8eff4fb9faa4881274559dc (patch) | |
tree | b438c8fb8953b84614c170a5278ae72ece90bb68 /old/lindy/systemd/rclone-mount@.service | |
parent | eaf6d5b07bcdd9a3eb9bfdac93566b7432e46c37 (diff) | |
download | user-config-d47dd5aa3882aea1a8eff4fb9faa4881274559dc.tar.gz user-config-d47dd5aa3882aea1a8eff4fb9faa4881274559dc.zip |
Unify things and rename things
Diffstat (limited to 'old/lindy/systemd/rclone-mount@.service')
-rw-r--r-- | old/lindy/systemd/rclone-mount@.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/old/lindy/systemd/rclone-mount@.service b/old/lindy/systemd/rclone-mount@.service new file mode 100644 index 0000000..2f5a454 --- /dev/null +++ b/old/lindy/systemd/rclone-mount@.service @@ -0,0 +1,15 @@ +[Unit] +Description=Mount a directory using rclone +After=network.target + +[Service] +ExecStartPre=sh -c "fusermount -u /home/lx.nobackup/mnt/%i || exit 0" +ExecStart=/usr/bin/rclone mount --vfs-cache-mode minimal --cache-dir /home/lx/.cache/rclone/%i %i: /home/lx.nobackup/mnt/%i + +# Restart every >2 seconds to avoid StartLimitInterval failure +RestartSec=10 +Restart=always + +[Install] +WantedBy=default.target + |