update init script to use procd
Signed-off-by: Mohd Husaam Mehdi <husaam.mehdi@iopsys.eu>
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/
-background=YES
+background=NO
listen=YES
anonymous_enable=NO
local_enable=YES
# 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
}