mirror of
https://github.com/opencloud-eu/opencloud.git
synced 2026-01-04 03:09:33 -06:00
20 lines
432 B
Go
20 lines
432 B
Go
package main
|
|
|
|
import (
|
|
"context"
|
|
"os"
|
|
"os/signal"
|
|
"syscall"
|
|
|
|
"github.com/owncloud/ocis/v2/services/groups/pkg/command"
|
|
"github.com/owncloud/ocis/v2/services/groups/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)
|
|
}
|
|
}
|