Skip to content

Commit

Permalink
Fix luci-app-nps boot script (coolsnowwolf#2407)
Browse files Browse the repository at this point in the history
  • Loading branch information
Ardentwheel authored and coolsnowwolf committed Dec 13, 2019
1 parent 7ea08e9 commit 1c8c7e1
Showing 1 changed file with 8 additions and 3 deletions.
11 changes: 8 additions & 3 deletions package/lean/luci-app-nps/root/etc/init.d/nps
Original file line number Diff line number Diff line change
Expand Up @@ -51,14 +51,19 @@ 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
procd_close_instance
fi
}

reload_service()
{
stop
start
}

0 comments on commit 1c8c7e1

Please sign in to comment.