Navigation Menu

Skip to content

Instantly share code, notes, and snippets.

@d0uji
Created April 21, 2019 18:54
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 d0uji/b61354d70aa13bb11e487b574ab116fd to your computer and use it in GitHub Desktop.
Save d0uji/b61354d70aa13bb11e487b574ab116fd to your computer and use it in GitHub Desktop.
[Unit]
Description=Plex Media Server service
Wants=rclone.service
After=rclone.service
[Service]
ExecStart=sudo docker start plex
ExecStop=sudo docker stop plex
[Unit]
Description=Plex Drive (rclone)
AssertPathIsDirectory=/mnt/plex
Wants=network-online.target
After=network-online.target
[Service]
Type=simple
ExecStart=/usr/bin/rclone mount \
--vfs-cache-mode writes \
--dir-cache-time=48h \
--vfs-read-chunk-size=128M \
--vfs-read-chunk-size-limit=2G \
--buffer-size=256M \
--attr-timeout=1s \
--allow-other \
--umask 002 \
--log-level INFO \
--log-file /var/log/rclone/rclone.log \
# --debug-fuse \
--cache-dir /tmp/ plex_crypt:DATA/ /mnt/plex
ExecStop=/bin/fusermount -u /mnt/plex
Restart=on-failure
RestartSec=10
#User=quatach-ichl
#Group=users
[Install]
WantedBy=default.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment