Skip to content

Commit e981a72

Browse files
committed
deb rmp add systemd config
1 parent 2b114e4 commit e981a72

File tree

4 files changed

+6
-2
lines changed

4 files changed

+6
-2
lines changed

.goreleaser.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -73,6 +73,10 @@ nfpms:
7373
formats:
7474
- deb
7575
- rpm
76+
files:
77+
"systemd/**": "/usr/lib/systemd/user"
78+
config_files:
79+
"server-go.yaml": "/etc/server-go/server-go.yaml"
7680
snapcrafts:
7781
- name_template: '{{ .ProjectName }}_{{ .Version }}_{{ .Os }}_{{ .Arch }}{{ if .Arm }}v{{ .Arm }}{{ end }}{{ if .Mips }}_{{ .Mips }}{{ end }}'
7882
summary: OpenIoTHub Server.

config/constants.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ package config
22

33
import "fmt"
44

5-
const DefaultConfigFileName = "server.yaml"
5+
const DefaultConfigFileName = "server-go.yaml"
66

77
var DefaultConfigFilePath = fmt.Sprintf("./%s", DefaultConfigFileName)
88

File renamed without changes.

systemd/server-go.service

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Type=simple
77
User=nobody
88
Restart=on-failure
99
RestartSec=5s
10-
ExecStart=/usr/bin/server-go -c /etc/server-go/server-go.yaml
10+
ExecStart=/usr/local/bin/server-go -c /etc/server-go/server-go.yaml
1111

1212
[Install]
1313
WantedBy=multi-user.target

0 commit comments

Comments
 (0)