Skip to content

Instantly share code, notes, and snippets.

@uWayLu
Created November 29, 2020 06:14
Show Gist options
  • Save uWayLu/9836d2f52fd980d92d64f6106690d1a2 to your computer and use it in GitHub Desktop.
Save uWayLu/9836d2f52fd980d92d64f6106690d1a2 to your computer and use it in GitHub Desktop.
[Unit]
Description=rclone daemon
After=network.target
[Service]
User=ywl
ExecStart=/usr/bin/rclone mount gd: /home/ywl/gdrive --allow-non-empty --vfs-cache-mode writes
ExecStop=/usr/bin/fusermount -uz /home/ywl/gdrive
Restart=on-abort
[Install]
WantedBy=multi–user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment