blob: 457c05ab1dd29a9f3c5511ddf2a2432342e9af62 [file] [log] [blame]
// Copyright The Monogon Project Authors.
// SPDX-License-Identifier: Apache-2.0
package main
import (
"context"
"flag"
"os"
"os/signal"
"source.monogon.dev/cloud/bmaas/scruffy"
)
func main() {
s := &scruffy.Server{}
s.Config.RegisterFlags()
flag.Parse()
ctx, _ := signal.NotifyContext(context.Background(), os.Interrupt)
s.Start(ctx)
<-ctx.Done()
}