Hey faultless server folks,
I'd like to write a systemd service that can update itself.
Specifically, every 5 minutes it should look at Amazon S3 for new versions of its binary and .service
files.
If they've been updated, it should download and replace them, and then restart itself.
Unfortunately, I understand systemd doesn't allow modification of in-use files.
Is there some standard way to achieve this?
Thanks!
EDIT: To clarify, I'm asking if it's possible to do this with a single service. I realize I could have a pair of services which update each other, but that seems inelegant.