summarylogtreecommitdiffstats
path: root/rclone@.service
blob: f75c58b41ea5007badbb15e935eea43232237ee9 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
# Credits: kabili207 - https://gist.github.com/kabili207/2cd2d637e5c7617411a666d8d7e97101

[Unit]
Description=rclone: Remote FUSE filesystem for cloud storage config %I
Documentation=man:rclone(1)
After=network-online.target
Wants=network-online.target
AssertPathIsDirectory="%h/mnt/%I"

[Service]
Type=notify
ExecStart=/usr/bin/rclone mount "%I:" "%h/mnt/%I"
ExecStop=/bin/fusermount -u "%h/mnt/%I"

[Install]
WantedBy=default.target