Skip to content

Instantly share code, notes, and snippets.

@werrpy
Created March 24, 2019 01:13
Show Gist options
  • Save werrpy/26e21510e88c2df675cdeeffb3e074a7 to your computer and use it in GitHub Desktop.
Save werrpy/26e21510e88c2df675cdeeffb3e074a7 to your computer and use it in GitHub Desktop.
gdrive plex mount systemd
[Unit]
Description=rclone google drive media mount
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone --config /root/gdrive/config/rclone.conf mount media-remote-secret: /mnt/gdrive-media --allow-non-empty --allow-other --read-only --dir-cache-time 48h --vfs-read-chunk-size 32M --vfs-read-chunk-size-limit 2G --tpslimit 5 --tpslimit-burst 5
ExecStop=/bin/fusermount -quz /mnt/gdrive-media
Restart=on-abort
RestartSec=5
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment