Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

--lean Flag Still Outputs "an instance is already running. exiting" #319

Open
AndrewPaglusch opened this issue Jul 29, 2023 · 0 comments
Open

Comments

@AndrewPaglusch
Copy link

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:

colors.Error.Println("an instance is already running. exiting")

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant