Update system to OpenRC/Baselayout 2. Using the following in /etc/conf.d/pure-ftpd UPLOADSCRIPT="/etc/pureftpd_clamav" MISC_OTHER="-A -x -B -E -o -O clf:/var/log/pureftpd.log -lpuredb:/etc/pureftpd.pdb Works fine before system update, but after the update pure-ftpd fails to start. Error message: start-stop-daemon: did not create a valid pid in `/var/run/pure-ftpd.pid' * Could not launch Pure-FTPd [ !! ] * ERROR: pure-ftpd failed to start Comment out UPLOADSCRIPT="/etc/pureftpd_clamav" and MISC_OTHER="-A -x -B -E -O clf:/var/log/pureftpd.log -lpuredb:/etc/pureftpd.pdb, and service starts.
Maybe it's also a good idea to wrap those three very long lines in the .rc10 script, while you're there. :)
Can you please attach your uploadscript (without any confidental data of course)?
Here is the script: #! /bin/sh /usr/bin/clamdscan --remove --quiet --no-summary "$1"
+*pure-ftpd-1.0.32-r1 (16 May 2011) + + 16 May 2011; Lars Wendler <polynomial-c@gentoo.org> + -pure-ftpd-1.0.30-r1.ebuild, -pure-ftpd-1.0.31.ebuild, + +pure-ftpd-1.0.32-r1.ebuild, +files/pure-ftpd.conf_d-3, + +files/pure-ftpd.rc11: + Fixed startup of pure-ftpd with openrc when pure-uploadscript should be + started as well. Thanks to Kilburn Abrahams for reporting this in bug + #366761. Improved readability of the init script a bit (requested by jer). + Removed old (vulnerable) versions. + Seems like pure-ftpd doesn't create a pidfile when being invoked with the --uploadscript parameter. As we cannot rely on the ftp daemon creating the pidfile for us, start-stop-daemon from openrc is doing that job for us now. Please test pure-ftpd-1.0.32-r1 and report back if it works now.
works fine now. Thanks