Files
dotfiles/systemd/user/rclone-gdrive.service
T
2025-09-03 14:23:55 +02:00

22 lines
447 B
Desktop File

[Unit]
Description=Gdrive (rclone)
AssertPathIsDirectory=~/gdrive
# Make sure we have network enabled
After=network.target
[Service]
Type=notify
ExecStart=/usr/bin/rclone mount --vfs-cache-mode full gdrive: ~/gdrive
# Perform lazy unmount
ExecStop=/usr/bin/fusermount -zu ~/gdrive
# Restart the service whenever rclone exists with non-zero exit code
Restart=on-failure
RestartSec=15
[Install]
# Autostart after reboot
WantedBy=default.target