2018-05-30 15:03:44 +01:00
|
|
|
// Copyright (C) 2018 Storj Labs, Inc.
|
|
|
|
// See LICENSE for copying information.
|
|
|
|
|
|
|
|
package main
|
|
|
|
|
|
|
|
import (
|
|
|
|
"context"
|
|
|
|
"flag"
|
|
|
|
|
2018-06-27 09:02:49 +01:00
|
|
|
"github.com/spf13/cobra"
|
2018-07-19 01:09:38 +01:00
|
|
|
"github.com/spf13/viper"
|
2018-06-27 09:02:49 +01:00
|
|
|
|
2018-05-30 15:03:44 +01:00
|
|
|
"storj.io/storj/pkg/process"
|
|
|
|
)
|
|
|
|
|
|
|
|
func main() {
|
|
|
|
flag.Set("metrics.interval", "1s")
|
2018-07-19 01:09:38 +01:00
|
|
|
process.Must(process.Main(func() (*viper.Viper, error) { return nil, nil }, process.ServiceFunc(run)))
|
2018-05-30 15:03:44 +01:00
|
|
|
}
|
|
|
|
|
2018-06-27 09:02:49 +01:00
|
|
|
func run(ctx context.Context, _ *cobra.Command, _ []string) error {
|
2018-05-30 15:03:44 +01:00
|
|
|
// just go to sleep and let the background telemetry start sending
|
|
|
|
select {}
|
|
|
|
}
|