Last active
July 30, 2019 18:14
-
-
Save mateka/180cd36205bae18e8a63e01ac5bcd4fa to your computer and use it in GitHub Desktop.
systemd user service to mount OneDrive
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[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