Merge pull request #11492 from SMillerDev/fix/service/add_linux_target
service: add install block to unit
This commit is contained in:
commit
9657303ed2
@ -211,6 +211,9 @@ module Homebrew
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Homebrew generated unit for #{@formula.name}
|
Description=Homebrew generated unit for #{@formula.name}
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=#{command.join(" ")}
|
ExecStart=#{command.join(" ")}
|
||||||
|
|||||||
@ -175,6 +175,9 @@ describe Homebrew::Service do
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Homebrew generated unit for formula_name
|
Description=Homebrew generated unit for formula_name
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=#{HOMEBREW_PREFIX}/opt/#{name}/bin/beanstalkd test
|
ExecStart=#{HOMEBREW_PREFIX}/opt/#{name}/bin/beanstalkd test
|
||||||
@ -202,6 +205,9 @@ describe Homebrew::Service do
|
|||||||
[Unit]
|
[Unit]
|
||||||
Description=Homebrew generated unit for formula_name
|
Description=Homebrew generated unit for formula_name
|
||||||
|
|
||||||
|
[Install]
|
||||||
|
WantedBy=multi-user.target
|
||||||
|
|
||||||
[Service]
|
[Service]
|
||||||
Type=simple
|
Type=simple
|
||||||
ExecStart=#{HOMEBREW_PREFIX}/opt/#{name}/bin/beanstalkd
|
ExecStart=#{HOMEBREW_PREFIX}/opt/#{name}/bin/beanstalkd
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user