init: Log enabled status only on boot

This commit is contained in:
remittor
2024-11-17 13:40:54 +03:00
parent cdbd9c80e0
commit 8ea92829c8

View File

@@ -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