systemd_service/examples/rclone.service

19 lines
496 B
SYSTEMD
Raw Permalink Normal View History

2024-05-28 23:15:00 +08:00
[Unit]
Description=Rclone Mount OneDrive
Documentation=https://rclone.org
After=network-online.target firewalld.service
Wants=network-online.target
[Service]
Type=forking
2024-06-14 22:12:00 +08:00
Group=root
User=root
2024-05-28 23:15:00 +08:00
ExecStart=/opt/rclone/rclone mount onedrive:/demo /onedrive --copy-links --no-gzip-encoding --no-check-certificate --allow-other --allow-non-empty --umask 000 --vfs-cache-mode writes
ExecStop=umount /onedrive
Restart=always
2024-06-14 22:12:00 +08:00
PrivateTmp=true
2024-05-28 23:15:00 +08:00
TimeoutStartSec=infinity
[Install]
WantedBy=multi-user.target