vsftpd: update init script to use procd

update init script to use procd

Signed-off-by: Mohd Husaam Mehdi <husaam.mehdi@iopsys.eu>
This commit is contained in:
Mohd Husaam Mehdi 2024-03-27 21:35:14 +05:30 committed by Florian Eckert
parent ce4b32edee
commit 1f884c960c
3 changed files with 9 additions and 9 deletions

View File

@ -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/

View File

@ -1,4 +1,4 @@
background=YES
background=NO
listen=YES
anonymous_enable=NO
local_enable=YES

View File

@ -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
}