LinuxQuestions.org
Review your favorite Linux distribution.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This 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


Reply
  Search this Thread
Old 04-27-2009, 08:15 PM   #1
Mass Zero
LQ Newbie
 
Registered: Apr 2009
Location: Amsterdam, NL
Distribution: CentOS
Posts: 6

Rep: Reputation: 0
"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?
 
Old 04-27-2009, 10:10 PM   #2
chrism01
LQ Guru
 
Registered: Aug 2004
Location: Sydney
Distribution: Centos 6.8, Centos 5.10
Posts: 17,240

Rep: Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324Reputation: 2324
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?
 
Old 04-28-2009, 07:46 AM   #3
Mass Zero
LQ Newbie
 
Registered: Apr 2009
Location: Amsterdam, NL
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
Quote:
Originally Posted by chrism01 View Post
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.
 
Old 04-28-2009, 08:19 AM   #4
colucix
LQ Guru
 
Registered: Sep 2003
Location: Bologna
Distribution: CentOS 6.5 OpenSuSE 12.3
Posts: 10,509

Rep: Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976Reputation: 1976
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.

Last edited by colucix; 04-28-2009 at 08:30 AM.
 
Old 04-28-2009, 08:38 AM   #5
Mass Zero
LQ Newbie
 
Registered: Apr 2009
Location: Amsterdam, NL
Distribution: CentOS
Posts: 6

Original Poster
Rep: Reputation: 0
You guys are saviors, it works. Thanks a bunch!
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
usb serial driver failing when calling "usb_submit_urb" - why? DEF. Programming 3 05-28-2009 11:25 AM
Alsa-utils failing make stage: "cannot stat `t-ja.gmo'", I think I need xgettext timkarwoski Linux - General 2 10-06-2008 03:07 PM
how to stop "while true; do nohup application; sleep 10; done &" michaeljoser Linux - Software 4 10-09-2007 08:39 AM
Recalling jobs started using nohup and "&" RAdams Linux - Software 3 12-21-2006 08:15 AM
cannot exit normally after "nohup blablabla > output.txt &" LQYY Linux - Newbie 1 12-14-2004 11:02 AM


All times are GMT -5. The time now is 06:29 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration