#1  
Old 14th June 2011, 19:10
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default pure-ftpd pid file

Can't find it on /var/run/pureftpd (the folder exists but is empty, pure-ftpd proccess exists and is running perfectly).

I tried to restart/stop/start the process, but not pid file (I need it for monit).

Debian 6, pure-ftpd-mysql package installed (perfect setup for debian 6 ispconfig3).

Could some one help me please?

thanks
Reply With Quote
Sponsored Links
  #2  
Old 15th June 2011, 09:33
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Did you check the PureFTPd init script in /etc/init.d/? It should contain a reference to the PID file.
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #3  
Old 15th June 2011, 15:01
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

root@site1:/var/run/pure-ftpd# vdir
total 0
root@site1:/var/run/pure-ftpd#

I have /etc/init.d/pure-ftpd-mysql there, inside, I have this reference (checked before post :P):

...
PIFILE=/var/run/pure-ftpd/pure-ftpd.pid
...

Every start in the script has is reference to PIDFILE

root@site1:/var# /etc/init.d/pure-ftpd-mysql status
could not access PID file for pure-ftpd ... failed!

If I delete the folder /var/run/pure-ftpd, it is creater when pure-ftpd is started. But PID is not created.

root@site1:/var/run/pure-ftpd# /etc/init.d/pure-ftpd-mysql status
could not access PID file for pure-ftpd ... failed!

root@site1:/var/run/pure-ftpd# ps x |grep pure-ftpd
2283 pts/0 S+ 0:00 grep pure-ftpd
21567 ? Ss 0:00 pure-ftpd (SERVER)

This smells like a bug...
Reply With Quote
  #4  
Old 15th June 2011, 15:10
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

When start pure-ftpd, I have no reference -g to pid file (it is hardwire, I think it should appear)

Starting ftp server: Running: /usr/sbin/pure-ftpd-mysql-virtualchroot -l mysql:/etc/pure-ftpd/db/mysql.conf -l pam -E -H -Y 1 -p 29799:29999 -c 100 -8 UTF-8 -I 10 -O clf:/var/log/pure-ftpd/transfer.log -L 5000:500 -u 1000 -T 64 -b -A -k 95 -4 -D -B
Reply With Quote
  #5  
Old 16th June 2011, 09:23
falko falko is offline
Super Moderator
 
Join Date: Apr 2005
Location: Lüneburg, Germany
Posts: 41,701
Thanks: 1,900
Thanked 2,747 Times in 2,578 Posts
Default

Can you try this and restart PureFTPd (please check if /etc/pure-ftpd/conf/PidFile exists already, and if so, make a backup of it before)?

Code:
echo "/var/run/pure-ftpd/pure-ftpd.pid" > /etc/pure-ftpd/conf/PidFile
__________________
Falko
--
Download the ISPConfig 3 Manual! | Check out the ISPConfig 3 Billing Module!

FB: http://www.facebook.com/howtoforge

nginx-Webhosting: Timme Hosting | Follow me on:
Reply With Quote
  #6  
Old 16th June 2011, 15:08
erosbk erosbk is offline
Senior Member
 
Join Date: Mar 2011
Posts: 337
Thanks: 49
Thanked 36 Times in 30 Posts
Default

I tried, but pureftpd will not start again (I can't remember the error, but PidFile was deprecated because right now it is hardwire. I will repeat and post here the error)
Reply With Quote
  #7  
Old 31st January 2014, 07:59
jluros jluros is offline
Junior Member
 
Join Date: Aug 2009
Posts: 14
Thanks: 1
Thanked 0 Times in 0 Posts
 
Default

That solution doesn't work. I'm also trying to get pure-ftpd to use the PIDFILE directive in the init.d script, but for some reason, either it's not getting passed to /usr/sbin/pure-ftpd-wrapper, or /usr/sbin/pure-ftpd-wrapper isn't accepting PIDFILE as an argument.
Reply With Quote
Reply

Bookmarks

Thread Tools
Display Modes

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 On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
All my mail is going to /var/mail/vmail _sluimers_ Installation/Configuration 21 10th January 2011 14:21
Webmin upgrade lishaw1968 Installation/Configuration 15 26th August 2010 16:23
Chroot SSH + ISPConfig Norman Installation/Configuration 27 26th March 2007 04:40
HotSaNIC domino Tips/Tricks/Mods 23 6th November 2006 06:19
Howto suggestion suse PhP ver 4 + Ver 5 wwparrish Suggest HOWTO 11 7th August 2006 14:29


All times are GMT +2. The time now is 23:51.


Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2014, vBulletin Solutions, Inc.