新增rclone.service
This commit is contained in:
parent
2d723a65a7
commit
a229064947
16
examples/rclone.service
Normal file
16
examples/rclone.service
Normal file
@ -0,0 +1,16 @@
|
|||||||
|
[Unit]
|
||||||
|
Description=Rclone Mount OneDrive
|
||||||
|
Documentation=https://rclone.org
|
||||||
|
After=network-online.target firewalld.service
|
||||||
|
Wants=network-online.target
|
||||||
|
|
||||||
|
[Service]
|
||||||
|
Type=forking
|
||||||
|
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
|
||||||
|
ExecReload=/bin/kill -SIGHUP $MAINPID
|
||||||
|
ExecStop=umount /onedrive
|
||||||
|
Restart=always
|
||||||
|
TimeoutStartSec=infinity
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
Loading…
Reference in New Issue
Block a user