Skip to content

Commit

Permalink
service: systemd launch_only_once
Browse files Browse the repository at this point in the history
Set the type of service to oneshot if launch_only_once is provided; otherwise, simple.
  • Loading branch information
NickHackman committed Feb 11, 2022
1 parent e86a4c5 commit f0aad4d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion Library/Homebrew/service.rb
Original file line number Diff line number Diff line change
Expand Up @@ -334,7 +334,7 @@ def to_systemd_unit
WantedBy=multi-user.target
[Service]
Type=simple
Type=#{@launch_only_once == true ? "onshot" : "simple"}
ExecStart=#{command.join(" ")}
EOS

Expand Down

0 comments on commit f0aad4d

Please sign in to comment.