Arch Linux

Please read this before reporting a bug:
https://wiki.archlinux.org/title/Bug_reporting_guidelines

Do NOT report bugs when a package is just outdated, or it is in the AUR. Use the 'flag out of date' link on the package page, or the Mailing List.

REPEAT: Do NOT report bugs for outdated packages!
Tasklist

FS#8327 - proftpd.pid not in /var/run

Attached to Project: Arch Linux
Opened by Dincer Celik (roadboy) - Wednesday, 17 October 2007, 08:11 GMT
Last edited by Hugo Doria (hdoria) - Sunday, 22 March 2009, 00:24 GMT
Task Type Bug Report
Category Packages: Extra
Status Closed
Assigned To Dale Blount (dale)
Architecture All
Severity Low
Priority Normal
Reported Version 2007.08-2
Due in Version Undecided
Due Date Undecided
Percent Complete 100%
Votes 0
Private No

Details

proftpd.pid file is in /var not in /var/run when you run proftpd and the file /var/run/proftpd.pid is empty.
This task depends upon

Closed by  Hugo Doria (hdoria)
Sunday, 22 March 2009, 00:24 GMT
Reason for closing:  Fixed
Additional comments about closing:  Fixed on proftpd 1.3.2-3
Comment by Roman Kyrylych (Romashka) - Wednesday, 17 October 2007, 10:24 GMT
weird, /etc/rc.d/proftpd has instructions to save PID in /var/run/proftpd.pid
Comment by Maciej Sitarz (macieks2) - Wednesday, 14 November 2007, 15:39 GMT
This line from /etc/rc.d/proftpd is executed only once on the begining of the script.
PID=`pidof -o %PPID /usr/sbin/proftpd`

So at that time proftpd is almost 100% not started thats why $PID variable is empty and echo's nothing.


Second issue about proftpd.pid file in /var:
/var/proftpd.pid is also created by the proftpd binary, but later its replaced by the rc.d script.

I suggest to change the ./configure parameter --localstatedir=/var/run.
Pid will be created by the daemon in /var/run directory, echo and pidof won't be necessary.
Also directory /var/proftpd created on every start of the daemon will be in /var/run. proftpd places there a socket file:
# ls -l /var/proftpd
-rw-r--r-- 1 root root 2232 lis 14 16:35 proftpd.delay
-rw-r--r-- 1 root root 16 lis 14 16:35 proftpd.scoreboard
srwxrwxrwx 1 root root 0 lis 14 16:35 proftpd.sock
Comment by Eric Belanger (Snowman) - Friday, 06 June 2008, 19:52 GMT
Dale: I'm attaching my latest version of the PKBUILD and files. I've tested it and it fixes this bug. However, it wouldn't hurt if you test it before commiting it. I can't test it for x86_64 (that's why I haven't committed it and have orphaned the package). If you don't have access to an x86_64 machine, ask on the ML.

BTW, you forgot to adopt ksymoops for x86_64.
Comment by Glenn Matthys (RedShift) - Friday, 05 December 2008, 14:14 GMT
Status: not implemented in proftpd-1.3.1-2 in extra. No package in testing.

Loading...