Skip to content

Instantly share code, notes, and snippets.

@tdq132
Last active May 13, 2019 10:28
Show Gist options
  • Save tdq132/3a7dea5654521d886401e9603ebdbc35 to your computer and use it in GitHub Desktop.
Save tdq132/3a7dea5654521d886401e9603ebdbc35 to your computer and use it in GitHub Desktop.
systemd service for mounting an rclone remote
[gd-tq]
type = drive
client_id =
client_secret =
scope = drive
root_folder_id =
service_account_file =
token = redacted
[gd-tq-cache]
type = cache
remote = gd-tq:Media/TV Shows
plex_url = https://127.0.0.1:32400/
chunk_size = 10M
info_age = 4h0m0s
chunk_total_size = 30G
plex_username = redacted
plex_password = redacted
db_path = /home/rclone/cache
chunk_path = /home/rclone/cache
[Unit]
Description=rclonemount
After=network.target
[Service]
Type=notify
User=rclone
ExecStart=/home/rclone/rclone mount "gd-tq-cache:" /mnt/rclone/TV --config /home/rclone/.rclone.conf --allow-other --allow-non-empty --read-only --log-file /home/rclone/logs/mount.log --log-level NOTICE
ExecStop=/bin/fusermount -uz /mnt/rclone/TV
Restart=on-failure
[Install]
WantedBy=multi-user.target
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment