Files

19 lines
430 B
Go
Raw Permalink Normal View History

2022-05-03 10:59:52 +02:00
package main
import (
"context"
2022-05-03 10:59:52 +02:00
"os"
"os/signal"
"syscall"
2022-05-03 10:59:52 +02:00
2022-06-20 16:49:06 +02:00
"github.com/owncloud/ocis/v2/services/users/pkg/command"
"github.com/owncloud/ocis/v2/services/users/pkg/config/defaults"
2022-05-03 10:59:52 +02:00
)
func main() {
cfg := defaults.DefaultConfig()
2024-07-29 16:28:13 +02:00
cfg.Context, _ = signal.NotifyContext(context.Background(), syscall.SIGINT, syscall.SIGTERM, syscall.SIGQUIT, syscall.SIGHUP)
if err := command.Execute(cfg); err != nil {
2022-05-03 10:59:52 +02:00
os.Exit(1)
}
}