mirror of
https://gitlab.com/buildroot.org/buildroot.git
synced 2026-10-01 06:21:56 -09:00
package/vsftpd: add systemd unit
Signed-off-by: Francois Perrad <francois.perrad@gadz.org> Signed-off-by: Thomas Petazzoni <thomas.petazzoni@bootlin.com>
This commit is contained in:
committed by
Thomas Petazzoni
parent
568ed934a0
commit
a5e71f722d
@@ -47,6 +47,11 @@ define VSFTPD_USERS
|
|||||||
ftp -1 ftp -1 * /home/ftp - - Anonymous FTP User
|
ftp -1 ftp -1 * /home/ftp - - Anonymous FTP User
|
||||||
endef
|
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
|
define VSFTPD_INSTALL_INIT_SYSV
|
||||||
$(INSTALL) -D -m 755 package/vsftpd/S70vsftpd $(TARGET_DIR)/etc/init.d/S70vsftpd
|
$(INSTALL) -D -m 755 package/vsftpd/S70vsftpd $(TARGET_DIR)/etc/init.d/S70vsftpd
|
||||||
endef
|
endef
|
||||||
|
|||||||
12
package/vsftpd/vsftpd.service
Normal file
12
package/vsftpd/vsftpd.service
Normal 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
|
||||||
Reference in New Issue
Block a user