/var/run/proftpd/ vanishes every reboot

LawsHosting

Verified User
Joined
Sep 13, 2008
Messages
2,404
Location
London UK
I've transferred a (Debian 7 32bit) server to a VM via rsync, all went smoothly after changing some /dev/ stuff.... (still in the testing stage)
proftpd[6841]: fatal: ScoreboardFile: : unable to use '/var/run/proftpd/proftpd.pid': No such file or directory on line 13 of '/etc/proftpd.conf'
Right, this isn't a VM specific problem.... Whenever I reboot, a server or VM, it seems that '/var/run/proftpd/' directory vanishes.. I'm not alone it seems, see reply #3 & #6 this post (very old external link).

Upon looking at the /etc/init.d/proftpd, it just has a:
PID=/var/run/proftpd.pid
No proftpd directory, no checking to see if it exists either.

Anyone have any ideas to why or why its looking for a proftpd directory, or why the conf has that path for the pid?
 
Last edited:
The /etc/proftpd.conf has this line:
Code:
ScoreboardFile                  /var/run/proftpd/proftpd.pid
You could add:
Code:
mkdir -p /var/run/proftpd
to the start section of the /etc/init.d/proftpd, before proftpd is started.
Or change the proftpd.conf (which isn't touched by DA after the install is done)

John
 
Back
Top