LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Newbie (https://www.linuxquestions.org/questions/linux-newbie-8/)
-   -   "nohup" failing on me? (https://www.linuxquestions.org/questions/linux-newbie-8/nohup-failing-on-me-722101/)

Mass Zero 04-27-2009 07:15 PM

"nohup" failing on me?
 
Here I am with another question~

I'm running Pure-FTPd on my VPS, but every time I close the remote terminal, Pure-FTPd stops. I've tried running it as nohup /usr/sbin/pure-ftpd -j -l puredb:/etc/pure-ftpd/pureftpd.pdb &, but it seems the nohup's failing for me, because Pure-FTPd still quits on me when I close the terminal.

What am I doing wrong here?

chrism01 04-27-2009 09:10 PM

Usually services like ftp are initiated using

service <servicename> start

either by the boot sequence or by root manually.
Actually, Centos comes with vsftp, which might be easier than adding another one, unless you really prefer pure-ftp.

Looks like your cmd should work; have you checked log files eg /var/log/messages and presumably pure-ftp has its own logfile?

Mass Zero 04-28-2009 06:46 AM

Quote:

Originally Posted by chrism01 (Post 3523061)
Usually services like ftp are initiated using

service <servicename> start

either by the boot sequence or by root manually.
Actually, Centos comes with vsftp, which might be easier than adding another one, unless you really prefer pure-ftp.

Looks like your cmd should work; have you checked log files eg /var/log/messages and presumably pure-ftp has its own logfile?

service pure-ftpd start works, but I need the options -j -l puredb:/etc/pure-ftpd/pureftpd.pdb enabled, else I can't log into the FTP server. (It enables virtual accounts.) And I don't see how I can add them, when starting the service like that.

Also, my messages and pureftpd logfiles are completely empty, so there's nothing really interesting I can find in there.

As for vsftpd... It doesn't look like it's pre-installed. I could also be very blind, of course. find and whereis couldn't locate it.

colucix 04-28-2009 07:19 AM

You have to edit the file /etc/pure-ftpd/pure-ftpd.conf and enable the switches there. For example uncomment the following lines that correspond to the -j and the -l option respectively:
Code:

CreateHomeDir              yes
PureDB                      /etc/pure-ftpd/pureftpd.pdb

Then start the service as suggested by chrism01 above. Hope this helps.

Mass Zero 04-28-2009 07:38 AM

You guys are saviors, it works. Thanks a bunch!


All times are GMT -5. The time now is 06:28 PM.