`--lean` Flag Still Outputs "an instance is already running. exiting"
AndrewPaglusch opened this issue · comments
Andrew Paglusch commented
Should the --lean
flag perhaps silence the "an instance is already running. exiting" output? I'm running the following in cron, and I'm getting tons of logs that just say "an instance is already running. exiting"
My cron job
*/5 * * * * /usr/local/bin/autorestic cron --ci --lean -c /opt/autorestic.yml >> /var/log/restic/restic_$(date +\%Y\%m\%d\%H\%M\%S).log 2>&1
I thought the message might be coming out on stderr, so I tried discarding that, but it looks like it's coming out on stdout:
$ /usr/local/bin/autorestic cron --ci --lean -c /opt/autorestic.yml 2>/dev/null
an instance is already running. exiting
The relevant area of code responsible for this message:
autorestic/internal/lock/lock.go
Line 50 in 78b0db5