mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2025-12-31 01:10:20 -06:00
fix: return early if the ocis is not running
This commit is contained in:
@@ -117,6 +117,10 @@ func Stop() (bool, string) {
|
||||
log.Println("Stopping oCIS server...")
|
||||
stopSignal = true
|
||||
|
||||
if cmd == nil {
|
||||
return true, "oCIS server is not running"
|
||||
}
|
||||
|
||||
err := cmd.Process.Signal(syscall.SIGINT)
|
||||
if err != nil {
|
||||
if !strings.HasSuffix(err.Error(), "process already finished") {
|
||||
|
||||
Reference in New Issue
Block a user