2020년 4월 13일 월요일

rclone systemd 방식으로 마운트


https://forum.rclone.org/t/rclone-auto-mount/6353/14 에서 참고 했습니다.

# vi /etc/systemd/system/rclonemount.service

[Unit]
Description=RClone Service
After=network-online.target
Wants=network-online.target


[Service]
Type=notify
ExecStart=/usr/bin/rclone mount --allow-other --vfs-read-chunk-size 16M --buffer-size 2G onedrive: /mnt/onedrive
ExecStop=/bin/fusermount -uz /mnt/onedrive
Restart=on-abort
User=users
Group=users

[Install]
WantedBy=default.target


# systemctl daemon-reload
# systemctl enable rclonemount
# systemctl start rclonemount

댓글 없음: