package/vsftpd: add systemd init
PATCH 1/1 package/vsftpd: add systemd init
Signed-off-by Francois Perrad <[email protected]>
--- 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
@@ -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
@@ -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
Thomas Petazzoni
AppliedPATCH 1/1 package/vsftpd: add systemd init
Quoted 6 lines · On Sat, 11 Jul 2020 15:58:43 +0200 Francois Perrad <[email protected]> wrote:
Signed-off-by Francois Perrad <[email protected]>--- 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