| 1 | [Unit] |
| 2 | Description=ProFTPD FTP Server |
| 3 | Documentation=man:proftpd(8) |
| 4 | Wants=network-online.target |
| 5 | After=network-online.target nss-lookup.target local-fs.target remote-fs.target |
| 6 | |
| 7 | [Service] |
| 8 | Type=forking |
| 9 | Environment=OPTIONS= CONFIG_FILE=/etc/proftpd/proftpd.conf |
| 10 | EnvironmentFile=-/etc/default/proftpd |
| 11 | ExecStartPre=/usr/sbin/proftpd --configtest -c $CONFIG_FILE $OPTIONS |
| 12 | ExecStart=/usr/sbin/proftpd -c $CONFIG_FILE $OPTIONS |
| 13 | ExecReload=/bin/kill -HUP $MAINPID |
| 14 | PIDFile=/run/proftpd.pid |
| 15 | |
| 16 | [Install] |
| 17 | WantedBy=multi-user.target |