Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
pure-ftpd-1.0.50-r3 and openrc
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
fudge
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 117

PostPosted: Wed Jun 01, 2022 3:10 pm    Post subject: pure-ftpd-1.0.50-r3 and openrc Reply with quote

Hi All,

The latest release of net-ftp/pure-ftpd-1.0.50-r3 has removed all of the openrc config as shown here: https://gitweb.gentoo.org/repo/gentoo.git/diff/net-ftp/pure-ftpd/files/pure-ftpd.rc11?id=e991d2f044f54c1516cc4e1dec4f1863acd9cb4e

Is there another way of starting pure-ftpd in openrc that works or is this just a move to systemd?

Regards to all Gentoo folk.
Back to top
View user's profile Send private message
fedeliallalinea
Administrator
Administrator


Joined: 08 Mar 2003
Posts: 30915
Location: here

PostPosted: Wed Jun 01, 2022 3:51 pm    Post subject: Reply with quote

No the support isn't removed, simply renamed the script in the files directory.
_________________
Questions are guaranteed in life; Answers aren't.
Back to top
View user's profile Send private message
fudge
Tux's lil' helper
Tux's lil' helper


Joined: 25 Jul 2002
Posts: 117

PostPosted: Wed Jun 01, 2022 11:41 pm    Post subject: Reply with quote

Cheers, I missed that note saying that /etc/conf.d/pure-ftpd has been deprecated.
Back to top
View user's profile Send private message
gbruns
n00b
n00b


Joined: 10 Jan 2018
Posts: 14

PostPosted: Wed Jun 15, 2022 5:34 am    Post subject: Reply with quote

I got another problem, with lastest changes to pure-ftpd.
openrc reports an error when starting pure-ftpd:

Code:

~ # rc-service pure-ftpd start
 * Starting pure-ftpd ...
 * start-stop-daemon: /usr/sbin/pure-ftpd died
 * Failed to start pure-ftpd                                                                                                                                                                                 [ !! ]
 * ERROR: pure-ftpd failed to start


But it does run:
Code:

~ # ps fax | grep ftp
12223 pts/0    S+     0:00          \_ grep --colour=auto ftp
12095 ?        Ss     0:00 /usr/sbin/pure-ftpd /etc/pure-ftpd.conf


And there is a pid file:
Code:

~ # cat /run/pure-ftpd.pid
12095


Just to be sure there is no setting, I unmerged pure-ftpd, removed all my configs and emerged pure-ftpd. Problem stays the same.
The only thing is changed it the ssl use flag. As it runs internally only I don't need ssl.
Code:

~ # eix pure-ftpd
[I] net-ftp/pure-ftpd
     Available versions:  1.0.50-r3 **9999*l {anondel anonperm anonren anonres caps implicittls ldap mysql noiplog pam paranoidmsg postgres resolveids selinux ssl sysquota vchroot xinetd}
     Installed versions:  1.0.50-r3(07:14:27 06/15/22)(pam -anondel -anonperm -anonren -anonres -caps -implicittls -ldap -mysql -noiplog -paranoidmsg -postgres -resolveids -selinux -ssl -sysquota -vchroot -xinetd)
     Homepage:            https://www.pureftpd.org/project/pure-ftpd/
     Description:         Fast, production-quality, standard-conformant FTP server


I am a bit at a loss here.
Back to top
View user's profile Send private message
gbruns
n00b
n00b


Joined: 10 Jan 2018
Posts: 14

PostPosted: Wed Jun 15, 2022 6:00 pm    Post subject: Reply with quote

Found the issue myself.
start-stop-daemon expect the daemon to run in foreground, while default settings for pure-ftpd let it daemonize itself.
So one has to set
Code:
Daemonize                    no
in pure-ftpd.conf and everything is fine.
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum