mirror of
https://dev.iopsys.eu/feed/iopsys.git
synced 2025-12-10 07:44:50 +01:00
uspd: Fix memory leak
This commit is contained in:
parent
f268b27622
commit
bb6131b1f7
2 changed files with 9 additions and 4 deletions
|
|
@ -5,12 +5,12 @@
|
||||||
include $(TOPDIR)/rules.mk
|
include $(TOPDIR)/rules.mk
|
||||||
|
|
||||||
PKG_NAME:=uspd
|
PKG_NAME:=uspd
|
||||||
PKG_VERSION:=2.1.26
|
PKG_VERSION:=2.1.27
|
||||||
|
|
||||||
LOCAL_DEV:=0
|
LOCAL_DEV:=0
|
||||||
ifneq ($(LOCAL_DEV),1)
|
ifneq ($(LOCAL_DEV),1)
|
||||||
PKG_SOURCE_PROTO:=git
|
PKG_SOURCE_PROTO:=git
|
||||||
PKG_SOURCE_VERSION:=b4904994739a4d1e37d7ee882969370760f46464
|
PKG_SOURCE_VERSION:=83f8fac0209bd0556eeda0c04302114cddf380e9
|
||||||
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/uspd.git
|
PKG_SOURCE_URL:=https://dev.iopsys.eu/iopsys/uspd.git
|
||||||
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
PKG_SOURCE:=$(PKG_NAME)-$(PKG_SOURCE_VERSION).tar.gz
|
||||||
PKG_MIRROR_HASH:=skip
|
PKG_MIRROR_HASH:=skip
|
||||||
|
|
|
||||||
|
|
@ -1,11 +1,15 @@
|
||||||
#!/bin/sh /etc/rc.common
|
#!/bin/sh /etc/rc.common
|
||||||
|
|
||||||
START=98
|
START=96
|
||||||
STOP=10
|
STOP=10
|
||||||
|
|
||||||
USE_PROCD=1
|
USE_PROCD=1
|
||||||
PROG=/usr/sbin/uspd
|
PROG=/usr/sbin/uspd
|
||||||
|
|
||||||
|
log() {
|
||||||
|
echo "${@}"|logger -t uspd.init -p debug
|
||||||
|
}
|
||||||
|
|
||||||
validate_uspd_usp_section()
|
validate_uspd_usp_section()
|
||||||
{
|
{
|
||||||
uci_validate_section uspd uspd "usp" \
|
uci_validate_section uspd uspd "usp" \
|
||||||
|
|
@ -45,6 +49,7 @@ configure_uspd()
|
||||||
}
|
}
|
||||||
|
|
||||||
start_service() {
|
start_service() {
|
||||||
|
log "Starting uspd"
|
||||||
procd_open_instance usp
|
procd_open_instance usp
|
||||||
procd_set_param command ${PROG}
|
procd_set_param command ${PROG}
|
||||||
configure_uspd
|
configure_uspd
|
||||||
|
|
@ -59,5 +64,5 @@ reload_service() {
|
||||||
|
|
||||||
service_triggers()
|
service_triggers()
|
||||||
{
|
{
|
||||||
procd_add_config_trigger "config.change" "uspd" /etc/init.d/uspd restart
|
procd_add_reload_trigger "uspd"
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Add table
Reference in a new issue