1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29
|
Running twoftpd services under inetd
The twoftpd service daemons rely on tcp related environment variables, see
http://www.qmail.org/man/man5/tcp-environ.html . The set-tcp-env program
contributed to this package sets up the mandatory environment variables, see
set-tcp-env(1). This program is heavily based on tcp-env[0].
The twoftpd service daemons also rely on several other environment
variables, normally set by envdir[1]. There are example wrappers for the
daemons in /usr/share/doc/twoftpd/examples/ .
To enable the twoftpd or twoftpd-anon service, edit the corresponding
wrapper to configure the environment (do not enable logging), and install the
wrapper in /usr/sbin, e.g.:
# vi /usr/share/doc/twoftpd/examples/in.twoftpd
# install -m 0755 /usr/share/doc/twoftpd/examples/in.twoftpd \
/usr/sbin/in.twoftpd
Then add the corresponding line to /etc/inetd.conf and tell inetd to reload
its configuration:
* ftp stream tcp nowait root /usr/bin/set-tcp-env in.twoftpd /usr/sbin/in.twoftpd
* ftp stream tcp nowait root /usr/bin/set-tcp-env in.twoftpd-anon /usr/sbin/in.twoftpd-anon
# /etc/init.d/inetd reload
Check the twoftpd service.
[0] http://www.qmail.org/man/man1/tcp-env.html
[1] http://cr.yp.to/daemontools/envdir.html
|