添加 rclone-webdav.service
This commit is contained in:
commit
e8765d4186
23
rclone-webdav.service
Normal file
23
rclone-webdav.service
Normal file
@ -0,0 +1,23 @@
|
||||
[Unit]
|
||||
Description=RClone WebDAV Server
|
||||
Wants=network-online.target
|
||||
After=network-online.target
|
||||
|
||||
[Service]
|
||||
User=root
|
||||
Group=root
|
||||
ExecStart=/usr/bin/rclone serve webdav mega:/ \
|
||||
--addr 127.0.0.1:8000 \
|
||||
--umask 0000 \
|
||||
--default-permissions \
|
||||
--allow-non-empty \
|
||||
--allow-other \
|
||||
--buffer-size 32M \
|
||||
--dir-cache-time 12h \
|
||||
--vfs-read-chunk-size 64M \
|
||||
--vfs-read-chunk-size-limit 1G
|
||||
ExecStop=/bin/kill -SIGTERM $MAINPID
|
||||
Restart=on-failure
|
||||
|
||||
[Install]
|
||||
WantedBy=multi-user.target
|
Loading…
x
Reference in New Issue
Block a user