mirror of
https://github.com/pgsty/minio.git
synced 2026-07-22 13:40:22 +03:00
control: Implement service command 'stop,restart,status'. (#2883)
- stop - stops all the servers. - restart - restart all the servers. - status - prints status of storage info about the cluster.
This commit is contained in:
+2
-10
@@ -18,14 +18,6 @@ package cmd
|
||||
|
||||
import "errors"
|
||||
|
||||
// errCode represents the return status of shutdown functions
|
||||
type errCode int
|
||||
|
||||
const (
|
||||
exitFailure errCode = -1
|
||||
exitSuccess errCode = 0
|
||||
)
|
||||
|
||||
// errSyslogNotSupported - this message is only meaningful on windows
|
||||
var errSyslogNotSupported = errors.New("Syslog logger not supported on windows")
|
||||
|
||||
@@ -42,7 +34,7 @@ var errInvalidToken = errors.New("Invalid token")
|
||||
var errInvalidTimestamp = errors.New("Timestamps don't match, server may have restarted.")
|
||||
|
||||
// If x-amz-content-sha256 header value mismatches with what we calculate.
|
||||
var errContentSHA256Mismatch = errors.New("sha256 mismatch")
|
||||
var errContentSHA256Mismatch = errors.New("Content checksum SHA256 mismatch")
|
||||
|
||||
// used when we deal with data larger than expected
|
||||
var errSizeUnexpected = errors.New("data size larger than expected")
|
||||
var errSizeUnexpected = errors.New("Data size larger than expected")
|
||||
|
||||
Reference in New Issue
Block a user