From: Mohd Husaam Mehdi Date: Wed, 27 Mar 2024 16:05:14 +0000 (+0530) Subject: vsftpd: update init script to use procd X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=1f884c960c236fe706deb9e8f89987dcac5940cb;p=feed%2Fpackages.git vsftpd: update init script to use procd update init script to use procd Signed-off-by: Mohd Husaam Mehdi --- diff --git a/net/vsftpd/Makefile b/net/vsftpd/Makefile index 277e86c577..34f26e3e28 100644 --- a/net/vsftpd/Makefile +++ b/net/vsftpd/Makefile @@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk PKG_NAME:=vsftpd PKG_VERSION:=3.0.5 -PKG_RELEASE:=2 +PKG_RELEASE:=3 PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz PKG_SOURCE_URL:=https://security.appspot.com/downloads/ diff --git a/net/vsftpd/files/vsftpd.conf b/net/vsftpd/files/vsftpd.conf index e06ac35431..1c63451741 100644 --- a/net/vsftpd/files/vsftpd.conf +++ b/net/vsftpd/files/vsftpd.conf @@ -1,4 +1,4 @@ -background=YES +background=NO listen=YES anonymous_enable=NO local_enable=YES diff --git a/net/vsftpd/files/vsftpd.init b/net/vsftpd/files/vsftpd.init index ad3e23da5f..a1673ee43f 100644 --- a/net/vsftpd/files/vsftpd.init +++ b/net/vsftpd/files/vsftpd.init @@ -2,12 +2,12 @@ # Copyright (C) 2006-2011 OpenWrt.org START=50 +USE_PROCD=1 +BIN=vsftpd -start() { - mkdir -m 0755 -p /var/run/vsftpd - service_start /usr/sbin/vsftpd -} - -stop() { - service_stop /usr/sbin/vsftpd +start_service() { + procd_open_instance + procd_set_param command $BIN + procd_set_param respawn + procd_close_instance }