1
0
Fork 0
mirror of https://github.com/anyproto/anytype-heart.git synced 2025-06-09 09:35:00 +09:00

kill properly

This commit is contained in:
Mikhail Iudin 2024-10-01 19:42:16 +02:00
parent 2c744076b6
commit 4cc97573e8
No known key found for this signature in database
GPG key ID: FAAAA8BAABDFF1C0

View file

@ -68,7 +68,7 @@ func SendResultsToHttp(apiKey string, events []Event) error {
}
func KillServer() error {
return ExecuteCommand("kill $(lsof -i :31007 -t) ; echo \"Server killed\"")
return ExecuteCommand("kill -9 $(lsof -i :31007 -t) ; echo \"Server killed\"")
}
func ExecuteCommand(command string) error {