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!
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!
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
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
|
Detailsproftpd.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
Sunday, 22 March 2009, 00:24 GMT
Reason for closing: Fixed
Additional comments about closing: Fixed on proftpd 1.3.2-3
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
BTW, you forgot to adopt ksymoops for x86_64.