package/vsftpd: add systemd unit

Signed-off-by: Francois Perrad <francois.perrad@gadz.org>
Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
2020.08.x
Francois Perrad 2020-07-11 15:58:43 +02:00 committed by Thomas Petazzoni
parent 568ed934a0
commit a5e71f722d
2 changed files with 17 additions and 0 deletions

View File

@ -47,6 +47,11 @@ define VSFTPD_USERS
ftp -1 ftp -1 * /home/ftp - - Anonymous FTP User
endef
define VSFTPD_INSTALL_INIT_SYSTEMD
$(INSTALL) -D -m 0644 package/vsftpd/vsftpd.service \
$(TARGET_DIR)/usr/lib/systemd/system/vsftpd.service
endef
define VSFTPD_INSTALL_INIT_SYSV
$(INSTALL) -D -m 755 package/vsftpd/S70vsftpd $(TARGET_DIR)/etc/init.d/S70vsftpd
endef

View File

@ -0,0 +1,12 @@
[Unit]
Description=vsftpd FTP server
After=network.target
[Service]
Type=simple
ExecStart=/usr/sbin/vsftpd /etc/vsftpd.conf
ExecReload=/bin/kill -HUP $MAINPID
Restart=always
[Install]
WantedBy=multi-user.target