mirror of
https://github.com/coolsnowwolf/lede.git
synced 2025-04-19 03:43:29 +00:00
Fix luci-app-nps boot script (#2407)
This commit is contained in:
parent
7ea08e97fe
commit
1c8c7e1115
@ -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
|
||||
}
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user