mirror of
https://github.com/nicoverbruggen/phpmon.git
synced 2025-11-08 05:30:05 +01:00
🚨 Cleanup
This commit is contained in:
@@ -11,18 +11,12 @@ import Foundation
|
|||||||
class Services {
|
class Services {
|
||||||
public static func mysqlIsRunning() -> Bool {
|
public static func mysqlIsRunning() -> Bool {
|
||||||
let running = Shell.execute(command: "launchctl list | grep homebrew.mxcl.mysql")
|
let running = Shell.execute(command: "launchctl list | grep homebrew.mxcl.mysql")
|
||||||
if (running != "") {
|
return (running != "")
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static func nginxIsRunning() -> Bool {
|
public static func nginxIsRunning() -> Bool {
|
||||||
let running = Shell.execute(command: "launchctl list | grep homebrew.mxcl.nginx")
|
let running = Shell.execute(command: "launchctl list | grep homebrew.mxcl.nginx")
|
||||||
if (running != "") {
|
return (running != "")
|
||||||
return true
|
|
||||||
}
|
|
||||||
return false
|
|
||||||
}
|
}
|
||||||
|
|
||||||
public static func detectPhpVersions() -> [String] {
|
public static func detectPhpVersions() -> [String] {
|
||||||
|
|||||||
Reference in New Issue
Block a user