diff --git a/System/Snowflake.php b/System/Snowflake.php index e70510b5..f23311f0 100644 --- a/System/Snowflake.php +++ b/System/Snowflake.php @@ -230,7 +230,9 @@ class Snowflake */ public static function getMasterPid() { - return file_get_contents(storage('socket.sock')); + $default = APP_PATH . 'storage/server.pid'; + $server = Config::get('settings.pid_file', $default); + return file_get_contents($server); }