Skip to content

Commit

Permalink
Fixing disable / restart functions
Browse files Browse the repository at this point in the history
  • Loading branch information
bfren committed Oct 25, 2023
1 parent 4cf8e0c commit df3f4cb
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions overlay/etc/nu/scripts/bf-aspnet/app.nu
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export def disable [] {
}

# kill the .NET process (if it's still running)
let dotnet_pids = ps | where name == "/usr/bin/dotnet" | get pid
let dotnet_pids = ps | where name == "dotnet" | get pid
if ($dotnet_pids | length) > 0 {
bf write "Killing .NET processes." app/disable
$dotnet_pids | each {|x| kill --force --quiet $x }
Expand All @@ -27,7 +27,7 @@ export def restart [] {
disable

# restart the applcation
bf write $"Restarting ($env.ASPNET_ASSEMBLY) application." app/restart
bf write $"Restarting (bf env ASPNET_ASSEMBLY) application." app/restart
^s6-rc -u change aspnet
}

Expand Down

0 comments on commit df3f4cb

Please sign in to comment.