Fix luci-app-nps boot script (#2407)

This commit is contained in:
Matthew Sheppard 2019-12-14 00:38:13 +08:00 committed by coolsnowwolf
parent 7ea08e97fe
commit 1c8c7e1115

View File

@ -51,10 +51,9 @@ start_service() {
if [ "$Enabled" = "1" ];then
logger -t FRPC 'Starting Nps service'
#service_start /usr/bin/npc -config=$tmpconf -log_level=$Log_level -log_path=$LOGFILE
procd_open_instance
procd_set_param command /usr/bin/npc -config=$tmpconf -log_level=$Log_level
procd_set_param file $tmpconf
procd_set_param command /usr/bin/npc -config=$tmpconf -log_level=$Log_level -log_path=$LOGFILE
#procd_set_param file $tmpconf
procd_set_param respawn
procd_set_param stdout 1
procd_set_param stderr 1
@ -62,3 +61,9 @@ start_service() {
fi
}
reload_service()
{
stop
start
}