SeaweedFS is a distributed storage system for object storage (S3), file systems, Iceberg table buckets, and Lance vector buckets, designed to handle billions of files with O(1) disk access and effortless horizontal scaling.
Go blob-storagecloud-drivedistributed-file-systemdistributed-storageerasure-codingfusehadoop-hdfshdfskuberneteslancelancedbobject-storageposixs3s3-storageseaweedfstiered-file-systemvector-search
adding /usr/local/etc/seaweedfs for bsd style config search path
Chris Lu06bb7bf6c009
diff --git a/weed/command/filer.go b/weed/command/filer.goindex 10dfdffadf..e720568937 100644--- a/weed/command/filer.go+++ b/weed/command/filer.go@@ -91,7 +91,7 @@ var cmdFiler = &Command{//return a json format subdirectory and files listingGET /path/to/- The configuration file "filer.toml" is read from ".", "$HOME/.seaweedfs/", or "/etc/seaweedfs/", in that order.+ The configuration file "filer.toml" is read from ".", "$HOME/.seaweedfs/", "/usr/local/etc/seaweedfs/", or "/etc/seaweedfs/", in that order.The example filer.toml configuration file can be generated by "weed scaffold -config=filer"diff --git a/weed/command/master.go b/weed/command/master.goindex c03da7f5db..d569919cd4 100644--- a/weed/command/master.go+++ b/weed/command/master.go@@ -69,7 +69,7 @@ var cmdMaster = &Command{Short: "start a master server",Long: `start a master server to provide volume=>location mapping service and sequence number of file ids- The configuration file "security.toml" is read from ".", "$HOME/.seaweedfs/", or "/etc/seaweedfs/", in that order.+ The configuration file "security.toml" is read from ".", "$HOME/.seaweedfs/", "/usr/local/etc/seaweedfs/", or "/etc/seaweedfs/", in that order.The example security.toml configuration file can be generated by "weed scaffold -config=security"diff --git a/weed/util/config.go b/weed/util/config.goindex 6acf21c122..47f4330283 100644--- a/weed/util/config.go+++ b/weed/util/config.go@@ -22,6 +22,7 @@ func LoadConfiguration(configFileName string, required bool) (loaded bool) {viper.SetConfigName(configFileName) // name of config file (without extension)viper.AddConfigPath(".") // optionally look for config in the working directoryviper.AddConfigPath("$HOME/.seaweedfs") // call multiple times to add many search paths+ viper.AddConfigPath("/usr/local/etc/seaweedfs/") // search path for bsd-style config directory inviper.AddConfigPath("/etc/seaweedfs/") // path to look for the config file inglog.V(1).Infof("Reading %s.toml from %s", configFileName, viper.ConfigFileUsed())