service: LaunchOnlyOnce plist test
This commit is contained in:
parent
dbb23739b0
commit
9f4949c8c6
@ -303,7 +303,7 @@ module Homebrew
|
|||||||
}
|
}
|
||||||
|
|
||||||
base[:KeepAlive] = @keep_alive if @keep_alive == true
|
base[:KeepAlive] = @keep_alive if @keep_alive == true
|
||||||
base[:LaunchOnlyOnce] = @launch_only_once if @launch_only_once == false
|
base[:LaunchOnlyOnce] = @launch_only_once if @launch_only_once == true
|
||||||
base[:LegacyTimers] = @macos_legacy_timers if @macos_legacy_timers == true
|
base[:LegacyTimers] = @macos_legacy_timers if @macos_legacy_timers == true
|
||||||
base[:TimeOut] = @restart_delay if @restart_delay.present?
|
base[:TimeOut] = @restart_delay if @restart_delay.present?
|
||||||
base[:ProcessType] = @process_type.to_s.capitalize if @process_type.present?
|
base[:ProcessType] = @process_type.to_s.capitalize if @process_type.present?
|
||||||
|
|||||||
@ -102,6 +102,7 @@ describe Homebrew::Service do
|
|||||||
root_dir var
|
root_dir var
|
||||||
working_dir var
|
working_dir var
|
||||||
keep_alive true
|
keep_alive true
|
||||||
|
launch_only_once true
|
||||||
process_type :interactive
|
process_type :interactive
|
||||||
restart_delay 30
|
restart_delay 30
|
||||||
interval 5
|
interval 5
|
||||||
@ -127,6 +128,8 @@ describe Homebrew::Service do
|
|||||||
\t<true/>
|
\t<true/>
|
||||||
\t<key>Label</key>
|
\t<key>Label</key>
|
||||||
\t<string>homebrew.mxcl.formula_name</string>
|
\t<string>homebrew.mxcl.formula_name</string>
|
||||||
|
\t<key>LaunchOnlyOnce</key>
|
||||||
|
\t<true/>
|
||||||
\t<key>LegacyTimers</key>
|
\t<key>LegacyTimers</key>
|
||||||
\t<true/>
|
\t<true/>
|
||||||
\t<key>ProcessType</key>
|
\t<key>ProcessType</key>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user