Skip to content

Conversation

exfly
Copy link

@exfly exfly commented Apr 27, 2025

Copy link

vercel bot commented Apr 27, 2025

The latest updates on your projects. Learn more about Vercel for Git ↗︎

Name Status Preview Comments Updated (UTC)
autorestic ✅ Ready (Inspect) Visit Preview 💬 Add feedback Apr 27, 2025 1:59am

RUN apk add --no-cache rclone bash curl docker-cli tini
COPY --from=builder /app/autorestic /usr/bin/autorestic
ENTRYPOINT []
ENTRYPOINT [ "/sbin/tini", "--" ]
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an old changelog entry about handing signals and graceful shutdown - if I understand tini correctly, it'll kill the process on SIGTERM instead of letting it handle its own shutdown

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

”All Tini does is spawn a single child (Tini is meant to be run in a container), and wait for it to exit all the while reaping zombies and performing signal forwarding.“

ref https://github.com/krallin/tini

tinit avoids zombies.

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

There is an old changelog entry about handing signals and graceful shutdown - if I understand tini correctly, it'll kill the process on SIGTERM instead of letting it handle its own shutdown

https://github.com/restic/restic/blob/master/internal/backend/rclone/backend.go#L85

cmd.Start no wait caused zombies. this pr is a workaroumd. It works in my homelab

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

Successfully merging this pull request may close these issues.

2 participants