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:
parent
ce4b32edee
commit
1f884c960c
|
@ -9,7 +9,7 @@ include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=vsftpd
|
PKG_NAME:=vsftpd
|
||||||
PKG_VERSION:=3.0.5
|
PKG_VERSION:=3.0.5
|
||||||
PKG_RELEASE:=2
|
PKG_RELEASE:=3
|
||||||
|
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_VERSION).tar.gz
|
||||||
PKG_SOURCE_URL:=https://security.appspot.com/downloads/
|
PKG_SOURCE_URL:=https://security.appspot.com/downloads/
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
background=YES
|
background=NO
|
||||||
listen=YES
|
listen=YES
|
||||||
anonymous_enable=NO
|
anonymous_enable=NO
|
||||||
local_enable=YES
|
local_enable=YES
|
||||||
|
|
|
@ -2,12 +2,12 @@
|
||||||
# Copyright (C) 2006-2011 OpenWrt.org
|
# Copyright (C) 2006-2011 OpenWrt.org
|
||||||
|
|
||||||
START=50
|
START=50
|
||||||
|
USE_PROCD=1
|
||||||
|
BIN=vsftpd
|
||||||
|
|
||||||
start() {
|
start_service() {
|
||||||
mkdir -m 0755 -p /var/run/vsftpd
|
procd_open_instance
|
||||||
service_start /usr/sbin/vsftpd
|
procd_set_param command $BIN
|
||||||
}
|
procd_set_param respawn
|
||||||
|
procd_close_instance
|
||||||
stop() {
|
|
||||||
service_stop /usr/sbin/vsftpd
|
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue