Skip to content

Instantly share code, notes, and snippets.

@mateka
Last active July 30, 2019 18:14
Show Gist options
  • Save mateka/180cd36205bae18e8a63e01ac5bcd4fa to your computer and use it in GitHub Desktop.
Save mateka/180cd36205bae18e8a63e01ac5bcd4fa to your computer and use it in GitHub Desktop.
systemd user service to mount OneDrive
[Unit]
Description=OneDrive (rclone mount)
Wants=network-online.target
After=network.target network-online.target
[Service]
Type=notify
Restart=on-failure
ExecStart=/usr/bin/rclone --vfs-cache-mode writes mount OneDrive: %h/OneDrive --config %h/.config/rclone/rclone.conf --no-modtime
ExecStop=fusermount -u %h/OneDrive
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment