sftp icon indicating copy to clipboard operation
sftp copied to clipboard

Hot update

Open libesz opened this issue 7 years ago • 5 comments

Closes #133. This PR aims to deliver hot-update for the SFTP user config. The target is to handle new users and password changes. Other modifications (such as uid change or user deletion) in the user config is out of scope now. Users.conf is watched for changes with inotifywait. This may happen in another container, which also accessing the same config as a mount. Jobs done:

  • [x] Supervisor integrated.
  • [x] Entrypoint is a standalone, watcher daemon, triggers the original function when users.conf changes. Managed by supervisord.
  • [x] Sshd also became a standalone daemon, managed with supervisord.
  • [x] Cleaning up, renaming, refactoring.

libesz avatar Aug 10 '18 13:08 libesz

Looking good, I will have a closer look at it soon! I may have to improve tests as well.

atmoz avatar Aug 29 '18 19:08 atmoz

Thanks! I did not find out so far why the tests are failing on this branch. I tried it on Arch.

libesz avatar Aug 29 '18 20:08 libesz

@libesz @atmoz Any plans on adding this? Currently trying to find a way to add users on runtime.

Edit: Switched over to drakkan/sftpgo.

synchronizing avatar Aug 22 '20 14:08 synchronizing

@synchronizing Wow what an old PR 😄. I am currently not using this project, and neither my improved fork. @atmoz might comment on the future of this PR.

libesz avatar Aug 25 '20 16:08 libesz

Roger that. No stress at all, got it all figured out with another project. :)

synchronizing avatar Aug 25 '20 19:08 synchronizing