avoid logs in tmp folder

This commit is contained in:
chrislu 2022-02-27 02:43:43 -08:00
parent dc13e7ca90
commit ddd5521de2
3 changed files with 3 additions and 3 deletions

View File

@ -13,7 +13,7 @@ import (
) )
func buildFilerStartupScript(m *seaweedv1.Seaweed) string { func buildFilerStartupScript(m *seaweedv1.Seaweed) string {
commands := []string{"weed", "filer"} commands := []string{"weed", "-logtostderr=true", "filer"}
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.FilerHTTPPort)) commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.FilerHTTPPort))
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-filer-peer.%s", m.Name, m.Namespace)) commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-filer-peer.%s", m.Name, m.Namespace))
commands = append(commands, fmt.Sprintf("-master=%s", getMasterPeersString(m))) commands = append(commands, fmt.Sprintf("-master=%s", getMasterPeersString(m)))

View File

@ -13,7 +13,7 @@ import (
) )
func buildMasterStartupScript(m *seaweedv1.Seaweed) string { func buildMasterStartupScript(m *seaweedv1.Seaweed) string {
command := []string{"weed", "master"} command := []string{"weed", "-logtostderr=true", "master"}
spec := m.Spec.Master spec := m.Spec.Master
if spec.VolumePreallocate != nil && *spec.VolumePreallocate { if spec.VolumePreallocate != nil && *spec.VolumePreallocate {
command = append(command, "-volumePreallocate") command = append(command, "-volumePreallocate")

View File

@ -13,7 +13,7 @@ import (
) )
func buildVolumeServerStartupScript(m *seaweedv1.Seaweed, dirs []string) string { func buildVolumeServerStartupScript(m *seaweedv1.Seaweed, dirs []string) string {
commands := []string{"weed", "volume"} commands := []string{"weed", "-logtostderr=true", "volume"}
commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.VolumeHTTPPort)) commands = append(commands, fmt.Sprintf("-port=%d", seaweedv1.VolumeHTTPPort))
commands = append(commands, "-max=0") commands = append(commands, "-max=0")
commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-volume-peer.%s", m.Name, m.Namespace)) commands = append(commands, fmt.Sprintf("-ip=$(POD_NAME).%s-volume-peer.%s", m.Name, m.Namespace))