Skip to content

Instantly share code, notes, and snippets.

@hazcod
Created August 25, 2020 05:33
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save hazcod/d78d551b075bd2d7d8fd2444ec09c9bc to your computer and use it in GitHub Desktop.
Save hazcod/d78d551b075bd2d7d8fd2444ec09c9bc to your computer and use it in GitHub Desktop.
plexdrive systemd settings
#### systemd script (/etc/systemd/system/plexdrive.service):
[Unit]
Description=Plexdrive
AssertPathIsDirectory=/media/plex/
After=network-online.target
### CONFIGURED FOR MAX ~58GB of MEMORY (change max-chunks to lower)
[Service]
Type=simple
ExecStart=/usr/bin/plexdrive mount \
--root-node-id="xxxx" \
-c /opt/plexdrive \
-o allow_other \
--chunk-check-threads=20 \
--chunk-load-ahead=4 \
--chunk-load-threads=20 \
--chunk-size=20M \
--max-chunks=800 \
--refresh-interval=1m \
"/media/plexdrive/cloud"
ExecStop=/bin/fusermount -u "/media/plex/cloud"
Restart=on-abort
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment