This commit is contained in:
2025-08-15 03:14:44 +02:00
parent bc86670611
commit 8eb626164b
27 changed files with 136 additions and 191 deletions

View File

@@ -0,0 +1,24 @@
# ~/.config/systemd/user/rclone-mount.service
[Unit]
Description=Rclone Mount for google drive
# This ensures your network is ready before it tries to mount
After=network-online.target
[Service]
# The command to start the mount.
# Replace "my-remote:" and "/path/to/local/mount" accordingly.
# The flags below are highly recommended for a good experience.
ExecStart=rclone mount google_drive: %h/gdrive \
--vfs-cache-mode writes \
--log-file /tmp/rclone.log \
--log-level INFO
# The command to unmount gracefully.
ExecStop=fusermount -u %h/gdrive
Restart=on-failure
RestartSec=10
[Install]
# This tells systemd to start the service at user login.
WantedBy=default.target