516b8cf2be
Reimplement windows service restart part using svc, add recovery for failed service startup. Added restart-service cmd, to execute self restart in a separate process. Addressed issues: https://storjlabs.atlassian.net/browse/SG-49 https://storjlabs.atlassian.net/browse/SG-136 https://storjlabs.atlassian.net/browse/SG-137 Change-Id: Ic51d9a99e8c1c10800c6c60ff4e218321c674fea
13 lines
188 B
Go
13 lines
188 B
Go
// Copyright (C) 2019 Storj Labs, Inc.
|
|
// See LICENSE for copying information.
|
|
|
|
// +build !windows
|
|
|
|
package main
|
|
|
|
import "storj.io/private/process"
|
|
|
|
func main() {
|
|
process.Exec(rootCmd)
|
|
}
|