diff options
author | Alex Auvolat <alex@adnab.me> | 2021-11-24 17:31:40 +0100 |
---|---|---|
committer | Alex Auvolat <alex@adnab.me> | 2021-11-24 17:31:40 +0100 |
commit | 3ffe74e408a0042b2b828d57a38322545d12db09 (patch) | |
tree | 89d2f7b66a0721d5bbbed81c252ba00465d373c6 /lindy/systemd/rclone-mount@.service | |
parent | 4d828d6b228771a8131b0b278c93db8814e21bfd (diff) | |
download | user-config-3ffe74e408a0042b2b828d57a38322545d12db09.tar.gz user-config-3ffe74e408a0042b2b828d57a38322545d12db09.zip |
Add systemd conf and win10 vm conf
Diffstat (limited to 'lindy/systemd/rclone-mount@.service')
-rw-r--r-- | lindy/systemd/rclone-mount@.service | 15 |
1 files changed, 15 insertions, 0 deletions
diff --git a/lindy/systemd/rclone-mount@.service b/lindy/systemd/rclone-mount@.service new file mode 100644 index 0000000..e2237b5 --- /dev/null +++ b/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 %i: /home/lx.nobackup/mnt/%i + +# Restart every >2 seconds to avoid StartLimitInterval failure +RestartSec=10 +Restart=always + +[Install] +WantedBy=default.target + |