Thanks for your response! The solution from Landry works fine for me but I think Stuart's solution would also work. But for my goal to have it in the most clean way to work with rcctl is my way.
Regards On Sun, 21 Jan 2018 14:00:04 +0000 Stuart Henderson <[email protected]> wrote: > On 2018/01/21 13:02, 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? > > > > > > Regards > > > > The rc.d script cannot use the config file. If run with a config file, > pure-ftpd doesn't look at command-line options, so there's no way to > force it to run as a daemon. (Same issue with dnscrypt-proxy). > > If you want to use the config file instead of command-line options, > it's probably best to start it from /etc/rc.local. >
