From a2290649472e6bc14451c7fab5b7f865f55a0527 Mon Sep 17 00:00:00 2001 From: huty Date: Tue, 28 May 2024 15:15:00 +0000 Subject: [PATCH] =?UTF-8?q?=E6=96=B0=E5=A2=9Erclone.service?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- examples/rclone.service | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) create mode 100644 examples/rclone.service diff --git a/examples/rclone.service b/examples/rclone.service new file mode 100644 index 0000000..cfdb008 --- /dev/null +++ b/examples/rclone.service @@ -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