Skip to content

Commit

Permalink
fix procd service inactive
Browse files Browse the repository at this point in the history
Exit directly will result procd service inactive and uci
configuration changes are no longer monitored.

Reported-by: Lvc Revincx <revincx233@gmail.com>
Signed-off-by: Tianling Shen <cnsztl@immortalwrt.org>
  • Loading branch information
1715173329 authored and Zxilly committed Oct 20, 2022
1 parent 965fd28 commit da8ed67
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion files/ua2f.init
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,7 @@ start_service() {

local enabled
config_get_bool enabled "enabled" "enabled" "0"
[ "$enabled" -eq "1" ] || exit 1
[ "$enabled" -eq "1" ] || return 1

procd_open_instance "$NAME"
procd_set_param command "$PROG"
Expand Down

0 comments on commit da8ed67

Please sign in to comment.