Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

"systemctl" failed: exit status 1 - Ubuntu (Debian) #183

Open
mohan3734 opened this issue Oct 3, 2019 · 0 comments
Open

"systemctl" failed: exit status 1 - Ubuntu (Debian) #183

mohan3734 opened this issue Oct 3, 2019 · 0 comments

Comments

@mohan3734
Copy link

mohan3734 commented Oct 3, 2019

kardianos service is failing to start the daemon in Ubuntu (Debian) platform and throwing the below error.

  1. Is the kardianos service is supported for Ubuntu (Debian)?
  2. If supported then how to resolve the below mentioned error?
  3. If not supported then is there a plan to support?

The details are given below,

2019/08/20 13:55:23 inside daemon.go Control() xxxxxxx Agent
2019/08/20 13:56:53 inside daemon.go Control() err Failed to start xxxxxxx Agent: "systemctl" failed: exit status 1
Failed to start xxxxxxx Agent: "systemctl" failed: exit status 1

import (
"github.com/kardianos/service"
)
.
.
.
log.Printf("inside daemon.go Control() %+v", svc)

err := service.Control(svc, 'start')
log.Printf("inside daemon.go Control() err %+v", err)		
if err != nil {
	return err
}

.
.

root@blrv071a046:/usr/local/xxxxxxx-agent/bin# hostnamectl
Static hostname:
Icon name: computer-vm
Chassis: vm
Machine ID: d25ddf1c2f747ecc4eb541455d25759d
Boot ID: 12c34fc2661b457d8cad1e411e47f892
Virtualization: vmware
Operating System: Ubuntu 16.04 LTS
Kernel: Linux 4.4.0-21-generic
Architecture: x86-64

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant