Skip to content

Commit

Permalink
Merge branch 'fix-rclone-webdav'
Browse files Browse the repository at this point in the history
  • Loading branch information
DavidePrincipi committed Oct 29, 2024
2 parents c4b84fa + 8fe3c87 commit 4a859e3
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 2 deletions.
5 changes: 3 additions & 2 deletions core/imageroot/etc/systemd/system/rclone-webdav.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ Environment=BACKUP_VOLUME=rclone-webdav
EnvironmentFile=/etc/nethserver/core.env
EnvironmentFile=-/var/lib/nethserver/node/state/rclone-webdav.env
Restart=always
TimeoutStopSec=70
TimeoutStopSec=120
ExecStartPre=/bin/rm -f %t/%N.pid %t/%N.cid
ExecStart=/usr/bin/podman run \
--conmon-pidfile=%t/%N.pid \
Expand All @@ -23,10 +23,11 @@ ExecStart=/usr/bin/podman run \
--entrypoint=[] \
${RESTIC_IMAGE} rclone serve webdav /srv/repo --addr :4694 $OPTIONS

ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%N.cid -t 10
ExecStop=/usr/bin/podman stop --ignore --cidfile %t/%N.cid -t 90
ExecStopPost=/usr/bin/podman rm --ignore -f --cidfile %t/%N.cid
PIDFile=%t/%N.pid
Type=forking
SuccessExitStatus=143

[Install]
WantedBy=default.target
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
#!/bin/bash

#
# Copyright (C) 2024 Nethesis S.r.l.
# SPDX-License-Identifier: GPL-3.0-or-later
#

exec 1>&2
set -e

# Restart the local backup destination WebDAV server:
systemctl restart rclone-webdav.service

0 comments on commit 4a859e3

Please sign in to comment.