diff --git a/bin/corre b/bin/corre index 104697a..307282b 100755 --- a/bin/corre +++ b/bin/corre @@ -111,7 +111,7 @@ FileUtils.chdir RAIZ_AP do exit 1 end puts "\n== Ejecutando en modo producción ==" - ord = "doas sh /etc/rc.d/#{ENV['RC']} -d start" + ord = "doas rcctl -d start #{ENV['RC']}" end system!(ord) diff --git a/bin/detiene b/bin/detiene index 3587530..c9aea47 100755 --- a/bin/detiene +++ b/bin/detiene @@ -14,7 +14,7 @@ if (test "$RAILS_ENV" = "production") then { exit 1; } fi; - doas sh /etc/rc.d/$RC -d stop + doas rcctl -d stop $RC } elif (test "$RAILS_ENV" = "development") then { # Intentando detener rails if (test -f tmp/pids/server.pid) then {