Skip to content

Commit f2400e7

Browse files
committed
avoid deleting vms while starting gw
Signed-off-by: Ashraf Fouda <[email protected]>
1 parent 73a4124 commit f2400e7

File tree

3 files changed

+4
-1
lines changed

3 files changed

+4
-1
lines changed

cmds/modules/gateway/main.go

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,6 @@ func action(cli *cli.Context) error {
7575
utils.OnDone(ctx, func(_ error) {
7676
log.Info().Msg("shutting down")
7777
})
78-
7978
if err := server.Run(ctx); err != nil && err != context.Canceled {
8079
return errors.Wrap(err, "unexpected error")
8180
}

etc/zinit/gateway.yaml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,6 @@ exec: gateway --broker unix:///var/run/redis.sock --root /var/cache/modules/gate
22
after:
33
- boot
44
- networkd
5+
- noded
6+
- vmd
7+
- flistd

etc/zinit/vmd.yaml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,3 +2,4 @@ exec: vmd --broker unix:///var/run/redis.sock
22
after:
33
- boot
44
- networkd
5+
- flistd

0 commit comments

Comments
 (0)