Skip to content

Commit

Permalink
fix restart
Browse files Browse the repository at this point in the history
Signed-off-by: Robert Müller 🚀 <code@brauser.io>
  • Loading branch information
Flipez committed Jan 21, 2020
1 parent f090a1e commit 8f9b495
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 1 deletion.
2 changes: 1 addition & 1 deletion main.go
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ func playSound(event string) {
func main() {
connect("hkick-core", mqttURI())
go subscribe(mqttURI())
clearAll()

// capture exit signals to ensure resources are released on exit.
quit := make(chan os.Signal, 1)
Expand All @@ -65,7 +66,6 @@ func main() {
case <-quit:
}

clearAll()
}

func leadingTeam() string {
Expand Down
1 change: 1 addition & 0 deletions scripts/etc/systemd/system/hkick-core.service
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@ Group=pi
Type=simple
ExecStart=/usr/local/bin/hkick-core
Restart=always
RestartSec=3

[Install]
WantedBy=multi-user.target

0 comments on commit 8f9b495

Please sign in to comment.