Fixed mprocs sending SIGHUP on restart instead of SIGTERM by adding

exec and updated gitignore
This commit is contained in:
2025-07-07 20:06:26 +03:00
parent 047d33b3ae
commit 0be78648cd
4 changed files with 5 additions and 4 deletions

1
.gitignore vendored
View File

@@ -3,3 +3,4 @@
*.db
*.db-shm
*.db-wal
eko-server

View File

@@ -292,7 +292,7 @@ func (m *UsersInfo) Type() PacketType {
type TosInfo struct {
Tos string
PrivacyPolicy string
Date string // 2025-07-05
Hash string
}
func (m *TosInfo) Type() PacketType {

View File

@@ -486,12 +486,12 @@ func timeout[T packet.Payload](
func sendTosInfo(ctx context.Context, sess *session.Session) bool {
tos := embeds.TermsOfService.Load().(string)
privacy := embeds.PrivacyPolicy.Load().(string)
date := embeds.TosPrivacyHash.Load().(string)
hash := embeds.TosPrivacyHash.Load().(string)
payload := &packet.TosInfo{
Tos: tos,
PrivacyPolicy: privacy,
Date: date,
Hash: hash,
}
return sess.Write(ctx, payload)
}

View File

@@ -1,6 +1,6 @@
procs:
server:
shell: "exec go run ./cmd/server -- -prod=false"
shell: "go build -o ./eko-server ./cmd/server && exec ./eko-server -- -prod=false"
client-main:
shell: "go run ./cmd/client"
client-secondary: