SHARE
TWEET

gdrive-tv.service

schmittyd May 1st, 2019 5 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. [Unit]
  2. Description=rClone gDrive TV Mount
  3. AssertPathIsDirectory=/union/tv
  4. After=network-online.target
  5.  
  6. [Service]
  7. User=media
  8. Group=flix
  9. Type=simple
  10. #ExecStart=/home/finleyadmin/bin/pd4 -c /home/finleyadmin/.plexdrive --chunk-size=10M --clear-chunk-age=1m -t /mnt/tmp -v 3 -o allow_other,read_only -v 3 /cloud/flix
  11. #ExecStart=/home/finleyadmin/bin/plexdrive mount -v 3 -c /home/finleyadmin/.plexdrive --refresh-interval=1m --chunk-check-threads=8 --chunk-load-threads=8 --chunk-load-ahead=12 --chunk-size=10M --max-chunks=500 --fuse-options=allow_other,read_only /union/media
  12. #Environment=RCLONE_CONFIG=/srv/.config/rclone/rclone.conf
  13. ExecStart=/usr/bin/rclone mount \
  14.   --config /srv/.config/rclone/rclone.conf \
  15.   --rc \
  16.   --rc-addr=localhost:5538 \
  17.   --log-file=/srv/.logs/rclone/gdrive-tv.log \
  18.   --log-level INFO \
  19.   --uid 1001 \
  20.   --gid 1002 \
  21.   --umask 002 \
  22.   --allow-non-empty \
  23.   --allow-other \
  24.   --fuse-flag sync_read \
  25.   --dir-cache-time=160h \
  26.   --buffer-size=64M \
  27.   --transfers=8 \
  28.   --poll-interval=15m \
  29.   --fast-list \
  30.   --attr-timeout=1s \
  31.   --vfs-read-chunk-size=64M \
  32.   --vfs-read-chunk-size-limit=2G \
  33.   --vfs-cache-max-age=180m \
  34.   --vfs-cache-mode=writes \
  35.   --cache-dir /media/tmp/trasncoding-temp \
  36.   --tpslimit=20 \
  37.   gdrive-tv:/ /gdrive/tv
  38.  
  39. #ExecStop=/bin/umount -l /cloud/media
  40. ExecStop=/bin/fusermount -uz /gdrive/tv
  41. Restart=always
  42. RestartSec=30
  43. StartLimitInterval=60s
  44. StartLimitBurst=3
  45.  
  46. [Install]
  47. WantedBy=default.target
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top