[Unit]
Description=XFTP server

[Service]
User=xftp
Group=xftp
Type=simple

ExecStart=/usr/local/bin/xftp-server start +RTS -N -RTS
ExecStopPost=/usr/local/bin/simplex-servers-stopscript xftp-server

LimitNOFILE=65535
KillSignal=SIGINT

TimeoutStartSec=infinity
TimeoutStopSec=infinity

Restart=on-failure
RestartSec=10s
StartLimitBurst=3
StartLimitInterval=60s

AmbientCapabilities=CAP_NET_BIND_SERVICE
   
[Install]
WantedBy=multi-user.target
