Linux - SoftwareThis forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.
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.
However, being debian based, I dont have an rc.local. I have rc.boot, rc0.d, rc1.d, rc2.d, rc3.d, rc4.d, rc5.d, rc6.d, and rcS.d. They are all folders.
So, where would I put that command in instead of rc.local on a debain based distro?
Distribution: Mandriva 2011 / Mageia 1 / Linux Mint 12 / CrunchBang Linux 10 Statler / Easy Peasy
Posts: 4,274
Rep:
Take a look at the documentation on the pureftpd site it has the correct syntax and examples for you to follow. You might want to grab a download of PureAdmin, it's a pureftp admin gui.
Last edited by {BBI}Nexus{BBI}; 03-19-2005 at 07:08 AM.
I read thru it all, and it doesnt mention anything about the rc.local file. I did as it said, and created a user 'dave' but when I try to log in (as anything) it says 'Connection Refused'. FW is off.
Im editing the /etc/rc2.d/S20pure-ftpd
But i messed up, my pc won't boot anymore.
Maybe i can delete the whole script,
and search for a way to automatically run it on boot.
edit:
Isn't there a solution in debian, u can easilly add daemons/programs on boot?
U found something?
But i can get it working ofcourse, but not with autostarting it on boot.
Just stop the server, and run with the commands u want.
But isn't there a replacement for rc.local, i found this:
- I deleted /etc/rc2.d/S20pure-ftpd (it is a link to /etc/init.d/pure-ftpd, but best u can backup it)
- I created the file /etc/init.d/local
- The first line:
#! /bin/sh
- Then just the commands to run it, i did:
/usr/sbin/pure-ftpd -lpuredb:/etc/pureftpd.pdb &
- Then save the file and make it excutable with:
chmod +x /etc/init.d/local
- And then link the file with:
update-rc.d local defaults 80
That was it U can do some echo's to see on boot its running but its just working =)
Hope it helps u 2!
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.