On Sun, Jan 21, 2018 at 01:02:31PM +0100, Torsten Boese wrote:
> Hi,
>
> I'm using OpenBSD 6.2 and I want to use pure-fptd as a daemon. I activated via
>
> # rcctl enable pureftpd
>
> the daemon ans its starts as expected. The problem is that pure-ftpd ignors the config file.
> As written in /usr/local/share/doc/pure-ftpd/README.Configuration-File I copied the pure-ftpd.conf in
>
> # /etc
> as well as in
>
> # /usr/local/etc/
> . But pure-ftpd ignors the config. If I do
>
> # pure-ftpd /etc/etc/pure-ftpd.conf
>
> the config works.
>
> Where I have to store the config or what is to do to enable using the config file for the daemon?
Iirc, pure-ftpd upstream didnt support a configuration file itself, you
configure it via flags passed on the commandline... by default the rc
script uses -A -B -H -u1000 (see /etc/rc.d/pure_ftpd) and you can
override it via
# rcctl set pure_ftpd flags <your flags>
(note that the rc script has an underscore - i dout your 'rcctl enable
pureftpd' did anythingat all)
I know debian has/had a perl script which parses a config directory with
one file by option, which are translated to commandline switches at
startup, but that wasnt upstream. I looked at the doc you mention, and
maybe it'd work if you set the path to where you installed the config
file (which i suppose you copied/adapted from the provided one in
share/examples?) as a startup flag:
# rcctl set pure_ftpd flags /path/to/config
The fact that the doc shows a 'double' /etc makes me think there's a
substitution error somewhere.
cc'ing ports@ as it's more relevant to a pure port issue..
Landry
No comments:
Post a Comment