Merge pull request #52 from cyberkitsune/develop

Inform user the daemon is checking disk size on server startup
This commit is contained in:
Dane Everitt 2020-08-30 09:14:21 -07:00 committed by GitHub
commit 9780cf902d
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -141,6 +141,7 @@ func (s *Server) onBeforeStart() error {
// and process resource limits are correctly applied. // and process resource limits are correctly applied.
s.SyncWithEnvironment() s.SyncWithEnvironment()
s.PublishConsoleOutputFromDaemon("Checking server disk space usage, this could take a few seconds...")
if !s.Filesystem.HasSpaceAvailable() { if !s.Filesystem.HasSpaceAvailable() {
return errors.New("cannot start server, not enough disk space available") return errors.New("cannot start server, not enough disk space available")
} }