diff --git a/zapret/init.d.sh b/zapret/init.d.sh index 4e957cb..c8dc39e 100755 --- a/zapret/init.d.sh +++ b/zapret/init.d.sh @@ -47,7 +47,9 @@ function enabled if [ -n "$ZAPRET_CFG_SEC_NAME" ]; then run_on_boot=$( get_run_on_boot_option ) if [ $run_on_boot != 1 ]; then - logger -p notice -t ZAPRET "Service is blocked!" + if [ "$IS_RUN_ON_BOOT" = "1" ]; then + logger -p notice -t ZAPRET "Service is blocked!" + fi return 61 fi fi