Hello,
I just compiled and maked the latest ProFTPD source. I added the default startup script, $SOURCE_DIR/contrib/dist/rpm/proftpd.init.d, to /etc/rc.d/init.d. I renamed it to proftpd, and created a symbolic link to it in rc3.d (S90proftp). Now, during startup, I noticed it wouldn't start so...I tried starting it manually with the script via ./S90proftp start
I got the following error:
Starting proftpd: execvp: No such file or directory
I checked my system log also, it was the same error message, no more information then above.
The server WILL start manually via /usr/local/sbin/proftpd, just not with the supplied script.
Any suggestions?
Thanks :confused:
P.S. I am running the server standalone and as a non privaleged user.
No such file or directory - the script is calling a program that is not available.
look in the script for the line that starts proftpd. bet it has another path than the one you installed it to? it should look like this:
/usr/sbin/proftpd
or maybe
startproc /usr/sbin/proftpd
correct it. if this is not the problem, post the script here (as attachment, please, not inline) and iŽll have a look at it.
Hey,
Thanks for replying.
look in the script for the line that starts proftpd. bet it has another path than the one you installed it to?
I already did that. I changed everything to the proper path. Just for the reference, it was installed to /usr/local/sbin. I also fixed the paths to the lock files.
I have attached the shell script to this post.
Thanks for the help
/usr/local/sbin is probably not in your searchpath. replace the line:
daemon proftpd $OPTIONS
with
daemon /usr/local/sbin/proftpd $OPTIONS
or add the line
PATH=$PATH:/usr/local/sbin
before it.
does it work now?
Thanks M.Hirsch,
That did the trick...The thing is, its in my $PATH already, but if it works I dont care. :)