Skip to content

Commit

Permalink
.
Browse files Browse the repository at this point in the history
  • Loading branch information
lolgab committed Jan 14, 2025
1 parent d808671 commit c83fe35
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions snunit-mill-plugin/src/snunit/plugin/SNUnit.scala
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@ trait SNUnit extends ScalaNativeModule {
// "--otel", TODO: Support otel
"--openssl",
openSslParams
).call(cwd = unitDir)
os.proc("make", "build/sbin/unitd", "build/lib/libunit.a").call(cwd = unitDir)
).call(cwd = unitDir, stdout = os.Inherit)
os.proc("make", "build/sbin/unitd", "build/lib/libunit.a").call(cwd = unitDir, stdout = os.Inherit)
val unitd = Task.dest / "unitd"
val libunit = Task.dest / "libunit.a"
os.copy(unitDir / "build/sbin/unitd", unitd)
Expand Down Expand Up @@ -82,7 +82,7 @@ trait SNUnit extends ScalaNativeModule {
val nginxUnit = snunitNGINXUnitBinary().unitd.path
val nginxUnitConfig = snunitNGINXUnitConfig()
os.write(statedir / "conf.json", nginxUnitConfig)
os.proc(nginxUnit, "--no-daemon").call(wd)
os.proc(nginxUnit, "--no-daemon").call(wd, stdout = os.Inherit)

()
}
Expand All @@ -91,7 +91,7 @@ trait SNUnit extends ScalaNativeModule {
val pidFile = snunitNGINXUnitWorkdir() / "unit.pid"

if (os.exists(pidFile)) {
os.proc("kill", os.read(snunitNGINXUnitWorkdir() / "unit.pid").trim).call()
os.proc("kill", os.read(snunitNGINXUnitWorkdir() / "unit.pid").trim).call(stdout = os.Inherit)
}

()
Expand Down

0 comments on commit c83fe35

Please sign in to comment.