Start. Stop. Probably stop trying to do this before bed.
This commit is contained in:
parent
ca1c71ea68
commit
f0d88a237f
|
@ -7,7 +7,7 @@ require 'securerandom'
|
||||||
RSpec.configure do |c|
|
RSpec.configure do |c|
|
||||||
|
|
||||||
def start_service(name)
|
def start_service(name)
|
||||||
cmd = "sudo /etc/init.d/#{name}* stop"
|
cmd = "sudo /etc/init.d/#{name}* start"
|
||||||
|
|
||||||
`which systemctl`
|
`which systemctl`
|
||||||
if $?.success?
|
if $?.success?
|
||||||
|
|
Loading…
Reference in New Issue
Block a user