2023-07-12 10:05:44 +02:00
|
|
|
[Unit]
|
|
|
|
Description=ftp (proftpd)
|
|
|
|
After=network.target
|
|
|
|
Requires=runit.service
|
|
|
|
|
|
|
|
[Service]
|
2025-02-16 08:09:38 +01:00
|
|
|
Type=simple
|
|
|
|
SyslogIdentifier=proftpd
|
|
|
|
Environment=CONCURRENCYREMOTE=40 PER_IP_INSTANCES=4 LOCALNAME=0 LISTENIP=0 PORT=ftp
|
|
|
|
WorkingDirectory=/var/service/proftpd/
|
2023-07-12 10:05:44 +02:00
|
|
|
ExecStartPre=/sbin/e-smith/service-status ftp
|
2025-02-16 08:09:38 +01:00
|
|
|
ExecStartPre=/sbin/e-smith/systemd/ftp-tcpsvd
|
|
|
|
ExecStart=/usr/bin/tcpsvd \
|
|
|
|
-v \
|
|
|
|
-i ./peers \
|
|
|
|
-c $CONCURRENCYREMOTE \
|
|
|
|
-C ${PER_IP_INSTANCES}:'421 per host concurrency limit reached\r\n' \
|
|
|
|
-l $LOCALNAME \
|
|
|
|
$LISTENIP \
|
|
|
|
$PORT \
|
|
|
|
/usr/sbin/in.proftpd
|
|
|
|
ExecReload=/bin/kill -HUP $MAINPID
|
|
|
|
Restart=always
|
|
|
|
RestartSec=20s
|
2023-07-12 10:05:44 +02:00
|
|
|
|
|
|
|
[Install]
|
|
|
|
WantedBy=sme-server.target
|
|
|
|
Alias=proftpd.service
|