Skip to contentSkip to conversation

package/vsftpd: add systemd init

PATCH New Francois Perrad 2 participants 2 messages Jul 11, 2020

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 package/vsftpd: add systemd init

---
 package/vsftpd/vsftpd.mk      |  5 +++++
 package/vsftpd/vsftpd.service | 12 ++++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 package/vsftpd/vsftpd.service
package/vsftpd/vsftpd.mk +5 -0
index 2f86d91ba..8a9aac2d2 100644
@@ -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
package/vsftpd/vsftpd.service new file +12 -0
new file mode 100644
index 000000000..eba61adda
@@ -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
Signature · 1 line
2.25.1
#1 lore raw

PATCH 1/1 package/vsftpd: add systemd init

Quoted 6 lines · On Sat, 11 Jul 2020 15:58:43 +0200 Francois Perrad <[email protected]> wrote:
---
 package/vsftpd/vsftpd.mk      |  5 +++++
 package/vsftpd/vsftpd.service | 12 ++++++++++++
 2 files changed, 17 insertions(+)
 create mode 100644 package/vsftpd/vsftpd.service

Applied to master, thanks.

Thomas

Signature · 3 lines
Thomas Petazzoni, CTO, Bootlin
Embedded Linux and Kernel engineering
https://bootlin.com