4 ms·
Had the same issue with restic taking up a lock in the event of an unsuccessful operation. I have a very simple workaround for it. ExecStartPre=/usr/bin/restic
by Timber-6539 2y ago
Had the same issue with restic taking up a lock in the event of an unsuccessful operation. I have a very simple workaround for it.
ExecStartPre=/usr/bin/restic unlock
ExecStart=/usr/bin/restic backup
- LtdJorge 2y agoThat has the benefit of Systemd not letting more than one instance run at the same time, which I'm guessing is one of the reasons the lock was needed in the first place. You just have to make sure that the type of Service used is correct, so that Systemd can track whether Restic has actually stopped running.