LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Debian (https://www.linuxquestions.org/questions/debian-26/)
-   -   Getting PureFTPd to startup auto (https://www.linuxquestions.org/questions/debian-26/getting-pureftpd-to-startup-auto-539967/)

dellthinker 03-23-2007 01:46 PM

Getting PureFTPd to startup auto
 
Hi all, ive been trying to figure out how to get PureFTPd to startup when the machine is ever rebooted with out having to do it manually. I put it in the init.d file but it never starts on its own when i reboot the machine. Any suggestions?

nx5000 03-23-2007 01:56 PM

Code:

cd /etc/rc2.d
ln -s ../init.d/pureftpd S50pureftpd


BillyGalbreath 03-23-2007 05:48 PM

If you installed from apt it should have setup the init scripts automatically.

Tortanick 03-24-2007 04:17 AM

nx5000, won't you need to put in a symlink to shut it down too?

nx5000 03-24-2007 07:39 AM

Oops right
RC6 is the one called upon reboot so you need at least this one.
Code:

cd /etc/rc6.d/
ln -s ../init.d/pureftpd K50pureftpd

If you want that when you switch from runlevel 2 (default when booting) to runlevel 3 pureftp is stoped you would put the same 'K line' in /etc/rc3.d.

makuyl 03-24-2007 10:07 AM

Wouldn't it soon be easier with:
update-rc.d pureftpd start 50 2 3 4 5 . stop 50 0 1 6 .
Adjust the runlevels if you want.

nx5000 03-24-2007 10:08 AM

Yes that's cleaner.
Thanks for correcting.


All times are GMT -5. The time now is 11:56 AM.