remove onActiveSec

This commit is contained in:
DenizUgur 2023-02-15 09:49:08 -08:00
parent 16b51d2a43
commit 66fe6d4169

View File

@ -486,7 +486,6 @@ module Homebrew
instance_eval(&@service_block) instance_eval(&@service_block)
options = [] options = []
options << "Persistent=true" if @run_type == RUN_TYPE_CRON options << "Persistent=true" if @run_type == RUN_TYPE_CRON
options << "OnActiveSec=0s" if @run_at_load == true
options << "OnUnitActiveSec=#{@interval}" if @run_type == RUN_TYPE_INTERVAL options << "OnUnitActiveSec=#{@interval}" if @run_type == RUN_TYPE_INTERVAL
if @run_type == RUN_TYPE_CRON if @run_type == RUN_TYPE_CRON