fauria / docker-vsftpd

🐳 vsftpd Docker image based on Centos 7. Supports passive mode and virtual users.
https://hub.docker.com/r/fauria/vsftpd/
Apache License 2.0
414 stars 341 forks source link

Run vsftpd as standalone #50

Closed HamzaDevz closed 4 years ago

HamzaDevz commented 4 years ago

Thanks for this image !

My goal is to have this container always open, and to have only "virtual_users.txt" updated by our application.

So, it would be great to launch vsftpd as a service.

When trying to start it with systemctl I have this error :

[root@d865273a4eae init.d]# systemctl start vsftpd.service Failed to get D-Bus connection: Operation not permitted

I want to have it as standalone to be able to restart it when the file "virtual_users.txt" is updated with a cron.

Do you have an idea ? Thank you by advance.

fauria commented 4 years ago

I'm not sure I understand this request. Is there any reason for not restarting the container itself?

HamzaDevz commented 4 years ago

Avoiding killing users which are transferring files ?

fauria commented 4 years ago

I think you are mistaking restarting with reloading (your request is about the former). In any case, I think service management should be done outside the container. If you are interested in using systemd, I'd recommend having a look at https://hub.docker.com/_/centos section Running a systemd enabled app container.