mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-03 19:48:31 -05:00
20 lines
452 B
Go
20 lines
452 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
|
|
"github.com/opencloud-eu/opencloud/services/auth-basic/pkg/command"
|
|
"github.com/opencloud-eu/opencloud/services/auth-basic/pkg/config/defaults"
|
|
)
|
|
|
|
func main() {
|
|
cfg := defaults.DefaultConfig()
|
|
cfg.Context, _ = signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT, syscall.SIGHUP)
|
|
if err := command.Execute(cfg); err != nil {
|
|
os.Exit(1)
|
|
}
|
|
}
|