Gentoo Websites Logo
Go to: Gentoo Home Documentation Forums Lists Bugs Planet Store Wiki Get Gentoo!
Bug 236190 - [init.d] net-ftp/pure-ftpd init.d script fails under openrc
Summary: [init.d] net-ftp/pure-ftpd init.d script fails under openrc
Status: RESOLVED FIXED
Alias: None
Product: Gentoo Linux
Classification: Unclassified
Component: [OLD] Server (show other bugs)
Hardware: All Linux
: High major (vote)
Assignee: Luca Longinotti (RETIRED)
URL:
Whiteboard:
Keywords:
: 239263 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-08-30 10:17 UTC by steveb
Modified: 2009-12-08 10:30 UTC (History)
2 users (show)

See Also:
Package list:
Runtime testing required: ---


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description steveb 2008-08-30 10:17:39 UTC
The init.d script for Pure-FTPd fails under openrc.

Reproducible: Always
Comment 1 steveb 2008-08-30 10:22:22 UTC
The pure-ftpd.rc6 init.d script does not work under openrc. On my setup I changed the init script like following:
--- /usr/portage/net-ftp/pure-ftpd/files/pure-ftpd.rc6  2008-04-18 13:06:43.000000000 +0200
+++ /etc/init.d/pure-ftpd       2008-08-30 12:15:27.556352203 +0200
@@ -23,7 +23,11 @@
                OKNODO="--oknodo"
        fi
        ebegin "Starting Pure-FTPd"
-       start-stop-daemon --start --quiet --make-pidfile --pidfile /var/run/pure-ftpd.pid $OKNODO --exec /usr/sbin/pure-ftpd -- $SERVER $MAX_CONN $MAX_CONN_IP $DAEMON $DISK_FULL $USE_NAT $AUTH $LOG $TIMEOUT $CHARCONV $MISC_OTHER $UPSCRIPT
+       start-stop-daemon --start --quiet \
+               --name ${SVCNAME} \
+               $OKNODO --exec /usr/sbin/pure-ftpd \
+               -- --pidfile /var/run/pure-ftpd.pid \
+               $SERVER $MAX_CONN $MAX_CONN_IP $DAEMON $DISK_FULL $USE_NAT $AUTH $LOG $TIMEOUT $CHARCONV $MISC_OTHER $UPSCRIPT
        result=$?
        if [ $result -ne 0 ] ; then
                eend 1 "Could not launch Pure-FTPd"


I don't know if this is breaking other stuff but at least under openrc-0.2.5 this is working. According to the documentation the "--oknodo" flag is deprecated, but I left it there.
Comment 2 Richard Li 2008-09-29 03:04:04 UTC
(In reply to comment #1)

This patch works or me. Thanks.
Comment 3 Conrad Kostecki gentoo-dev 2008-10-07 07:35:04 UTC
Thanks! :>
Worked for me too.
Comment 4 Bernard Cafarelli gentoo-dev 2009-10-16 12:33:52 UTC
*** Bug 239263 has been marked as a duplicate of this bug. ***
Comment 5 Bernard Cafarelli gentoo-dev 2009-12-08 10:30:08 UTC
Thanks for the report, pure-ftpd-1.0.26 has updated init script (see bug #293696), which worked for me on openrc. So this bug should be fixed :)

Don't hesitate to reopen if it still fails for you