|
|
|
@ -25,13 +25,9 @@ $original_stdin = $stdin.dup
|
|
|
|
|
$original_stdout = $stdout.dup |
|
|
|
|
$original_stderr = $stderr.dup |
|
|
|
|
|
|
|
|
|
$run_base_path = "/run/github-fast-env" |
|
|
|
|
$runtime_directory = "/run/github-fast-env" |
|
|
|
|
|
|
|
|
|
unless File.directory?($run_base_path) |
|
|
|
|
FileUtils.mkdir_p($run_base_path, :mode => 0700) |
|
|
|
|
end |
|
|
|
|
|
|
|
|
|
control_socket_path = "#{$run_base_path}/github-fast-envd.sock" |
|
|
|
|
control_socket_path = "#{$runtime_directory}/github-fast-envd.sock" |
|
|
|
|
|
|
|
|
|
if File.exist?(control_socket_path) and File.socket?(control_socket_path) |
|
|
|
|
File.unlink(control_socket_path) |
|
|
|
|