24 lines
535 B
Desktop File
24 lines
535 B
Desktop File
[Unit]
|
|
Description=rclone S3 mount for Snikket file share
|
|
After=network-online.target
|
|
Wants=network-online.target
|
|
Before=docker.service
|
|
|
|
[Service]
|
|
Type=notify
|
|
ExecStartPre=/bin/mkdir -p /mnt/snikket-files
|
|
ExecStart=/usr/bin/rclone mount \
|
|
jabogram-vk:jabogram/http_file_share \
|
|
/mnt/snikket-files \
|
|
--vfs-cache-mode writes \
|
|
--vfs-cache-max-age 1h \
|
|
--vfs-cache-max-size 512M \
|
|
--allow-other
|
|
ExecStop=/bin/fusermount -uz /mnt/snikket-files
|
|
Restart=on-failure
|
|
RestartSec=5
|
|
|
|
[Install]
|
|
WantedBy=multi-user.target
|
|
|