Bug 190747 - ftp/pure-ftpd starts two instances of uploadscript on reboot
Summary: ftp/pure-ftpd starts two instances of uploadscript on reboot
Status: Closed Feedback Timeout
Alias: None
Product: Ports & Packages
Classification: Unclassified
Component: Individual Port(s) (show other bugs)
Version: Latest
Hardware: Any Any
: --- Affects Only Me
Assignee: Po-Chuan Hsieh
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2014-06-07 10:54 UTC by Raivo Hool
Modified: 2016-01-17 15:01 UTC (History)
1 user (show)

See Also:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Raivo Hool 2014-06-07 10:54:17 UTC
FreeBSD 10 current. After the introduction of staging and the rewrite of the rc.d/pure-ftpd startup script, pure-ftpd starts two instances of the upload script upon reboot if pureftpd_uploadscript is enabled in rc.conf. This only happens upon reboot, never upon starting the service manually when the system is already up and running.

My rc.conf:

pureftpd_enable="YES"
pureftpd_upload_enable="YES"
pureftpd_uploadscript="/root/cronscript/liiguta_klientide_failid.sh"

The situation after each reboot:

root        758   0.0  0.1   59720   6292  -  Is   11:50AM  0:00.05 pure-ftpd (SERVER) (pure-ftpd)
root        760   0.0  0.1   30528   4316  -  Is   11:50AM  0:00.00 /usr/local/sbin/pure-uploadscript -B -r /root/cronscript/liiguta_klientide_failid.sh
root        949   0.0  0.1   30528   4480  -  Is   11:50AM  0:00.00 /usr/local/sbin/pure-uploadscript -B -r /root/cronscript/liiguta_klientide_failid.sh

The situation after killing all the processes and doing service pure-ftpd start:

root       2315   0.0  0.1   59720   6532  -  Is   11:54AM   0:00.20 pure-ftpd (SERVER) (pure-ftpd)
root       2317   0.0  0.1   30528   4616  -  Is   11:54AM   0:00.00 /usr/local/sbin/pure-uploadscript -B -r /root/cronscript/liiguta_klientide_failid.sh
Comment 1 Adam Weinberger freebsd_committer freebsd_triage 2014-07-06 00:23:43 UTC
Over to maintainer.