1
0
의 미러 https://github.com/therootcompany/telebit.git synced 2025-07-05 11:56:35 +00:00

bugfix service installers

This commit is contained in:
AJ ONeal 2020-11-05 16:05:47 -07:00
부모 8d73901067
커밋 d174b4739f
5개의 변경된 파일7개의 추가작업 그리고 7개의 파일을 삭제

파일 보기

@ -99,7 +99,7 @@ func main() {
if len(os.Args) >= 2 {
if "install" == os.Args[1] {
if err := service.Install(); nil != err {
if err := service.Install(serviceName, serviceDesc); nil != err {
fmt.Fprintf(os.Stderr, "%v", err)
}
return

파일 보기

@ -5,6 +5,6 @@ import (
)
// Install ensures a systemd service is active
func Install() error {
return errors.New("'install' not supported for system services on this platform")
func Install(name, desc string) error {
return errors.New("not supported for system services on this platform")
}

파일 보기

@ -7,6 +7,6 @@ import (
)
// Install ensures a windows service is active
func Install() error {
func Install(name, desc string) error {
return errors.New("not supported for system services on this platform")
}

파일 보기

@ -17,7 +17,7 @@ func Install(name, desc string) error {
return err
}
return installService(name, desc, exepath)
return install(name, desc, exepath)
}
func getExecPath(exepath string) (string, error) {
@ -38,7 +38,7 @@ func getExecPath(exepath string) (string, error) {
p += ".exe"
fi, err = os.Stat(p)
if nil != err {
return err
return "", err
}
}

파일 보기

@ -5,6 +5,6 @@ import (
)
// Install ensures a systemd service is active
func Install() error {
func Install(name, desc string) error {
return errors.New("'install' not supported for system services on this platform")
}