summaryrefslogtreecommitdiff
path: root/lindy/systemd/rclone-mount@.service
blob: 2f5a45487b8ab6a62812a551135f49459e8654b3 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
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