For about 1/2 year ago I needed a open source server, that was easy to fix for my needs. I did some googling and ended up with IndiFTPD. I changed the source code a bit to fit my needs.
This ftp server is just an exe and a config file, so I just run the exe and the server is up. This has worked nice for 1/2 year now. But the problem is that if I am not around and something happens, the ftp server goes down (like a power break).
So I was planning to make it run as a service, this way if something happens its just to boot/reboot my pc.
In the source code there is a built in service.cpp and service.h. So I thought it should be easy to make it run as a service. I added my exe as a service and try to start it. Then I get this:
"Error 1053: The service did not respond to the start or control request in a timely fashion"
I read around a bit and finds out this about the class:
And here is my problem, I can’t get it to work, I have studied the code, searched google, and I can’t find out how to set up IndiFTPD as a service. I am sure this is easy for an experienced coder to figure out? (Atleast i hope so)Quote:
This class contains methods to setup an application to run as a service
-- not used in IndiFTPD. Currently this is mostly useful for Windows.
I don’t want to change ftpd since I have a user database on 100+ users.
Sourcecode can be found here: http://www.dftpd.com/indiftpd-source.php
I hope somebody can help me.