Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
I'm just getting going on Linux, running RedHat Enterprise edition.
I'm trying to set up ProFTP, and I used the tutorial here but took a wrong turn somewhere. Now I'm trying to follow the instructions at redhat.hostinghacks.net/proftp/ and have made better progress, but am now stuck on one point.
After I set up the proftpd init script (as stored in etc/init.d), I chmod it to 755, add it to chkconfig, and then give the command: service proftpd start.
This calls the start function in the script, which hoses out on this line:
daemon proftpd $OPTIONS
as such:
daemon: command not found.
I did it from the command line and got:
-bash: daemon: command not found
What's not found? Is daemon not found? If not, what should I use, or what should I install? Is proftpd not found? If so, where should it be, and with what permissions?
I think I'm just missing some little step here. Soooo close, and yet soooo far...
It's telling you right there . It's saying that the command 'daemon' cannot be found. Looks like your startup script is somewhat incorrect as proftpd's binary should not be called daemon. If you can't disect and fix the startup script then I suggest you write your own.
I have used loadproc and startproc, all were not found.
I didn't come running here first; I've actually invested (wasted, maybe) a fair amount of time on this.
I've also compared it to other entries in init.d... for instance, syslog can be started, and is command is:
start() {
echo ... something ....
daemon syslogd $SYSLOGD_OPTIONS
.. some other stuff..
}
so that works just fine. Syntactically it's a little different... it has start(){}, and I have start) ;;
It also starts with bin/bash, and I start with bin/sh.. does that make a difference? I tried bin/bash, but no difference, although I didn't try changing the whole syntax around. And the scripts I referenced were explicitly written for redhat, so one would think they work.
I compared it against syslog, which did seem to run, and traced it to the beginning of the script.
I had:
./etc/rc.d/init.d/functions
Syslog had:
. /etc/init.d/functions
To make a long story short, it was the space between the period and the / (not so much the directory). There is a file called "functions" in /etc/rc.d/init.d/, and there is a function "daemon" in it. Since /etc/... is off the root, and not relative, I realized the space was not a type but was intentional, changed it, and that problem went away.
There's now a new problem "execvp: No such file or directory", but I'm just beginning to look at that.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.