Created
August 25, 2020 05:33
-
-
Save hazcod/d78d551b075bd2d7d8fd2444ec09c9bc to your computer and use it in GitHub Desktop.
plexdrive systemd settings
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
#### 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