Created
April 21, 2019 18:54
-
-
Save d0uji/b61354d70aa13bb11e487b574ab116fd to your computer and use it in GitHub Desktop.
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
[Unit] | |
Description=Plex Media Server service | |
Wants=rclone.service | |
After=rclone.service | |
[Service] | |
ExecStart=sudo docker start plex | |
ExecStop=sudo docker stop plex |
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
[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