fix: change ahenk daemon name
This commit is contained in:
parent
baef23ff04
commit
f8bafbbff0
3 changed files with 6 additions and 6 deletions
|
@ -11,8 +11,8 @@ import (
|
||||||
"golang.org/x/exp/slices"
|
"golang.org/x/exp/slices"
|
||||||
)
|
)
|
||||||
|
|
||||||
const PidFile = "/run/ahenkd-go.pid"
|
const PidFile = "/run/ahenk-go.pid"
|
||||||
const ExecutablePath = "/usr/bin/ahenkd-go"
|
const ExecutablePath = "/usr/bin/ahenk-go"
|
||||||
const DataDir = "/etc/ahenk-go/"
|
const DataDir = "/etc/ahenk-go/"
|
||||||
const LogFile = DataDir + "ahenk.log"
|
const LogFile = DataDir + "ahenk.log"
|
||||||
const LibDir = "/usr/share/ahenk-go/"
|
const LibDir = "/usr/share/ahenk-go/"
|
||||||
|
|
2
debian/ahenk-go.service
vendored
2
debian/ahenk-go.service
vendored
|
@ -10,7 +10,7 @@ Group=root
|
||||||
ExecStart=/usr/bin/ahenk-go start
|
ExecStart=/usr/bin/ahenk-go start
|
||||||
ExecStop=/usr/bin/ahenk-go stop
|
ExecStop=/usr/bin/ahenk-go stop
|
||||||
ExecReload=kill -HUP $MAINPID
|
ExecReload=kill -HUP $MAINPID
|
||||||
PIDFile=/run/ahenkd-go.pid
|
PIDFile=/run/ahenk-go.pid
|
||||||
Restart=always
|
Restart=always
|
||||||
|
|
||||||
[Install]
|
[Install]
|
||||||
|
|
|
@ -14,8 +14,8 @@ var ResourcesConnect plug
|
||||||
// return instant resource usage information
|
// return instant resource usage information
|
||||||
func ResourceUsage() map[string]string {
|
func ResourceUsage() map[string]string {
|
||||||
data := map[string]string{
|
data := map[string]string{
|
||||||
|
"System": runtime.GOOS, "Release": osinfo.GetKernelInfo()["Release"],
|
||||||
// {'System': self.Os.name(), 'Release': self.Os.kernel_release(),
|
// TODO "Version":
|
||||||
// 'Version': self.Os.distribution_version(), 'Machine': self.Os.architecture(),
|
// 'Version': self.Os.distribution_version(), 'Machine': self.Os.architecture(),
|
||||||
// 'CPU Physical Core Count': self.Hardware.Cpu.physical_core_count(),
|
// 'CPU Physical Core Count': self.Hardware.Cpu.physical_core_count(),
|
||||||
// 'Total Memory': self.Hardware.Memory.total(),
|
// 'Total Memory': self.Hardware.Memory.total(),
|
||||||
|
@ -35,7 +35,7 @@ func ResourceUsage() map[string]string {
|
||||||
// return general Agent information (that changes rarely)
|
// return general Agent information (that changes rarely)
|
||||||
func (p plug) AgentInfo() map[string]interface{} {
|
func (p plug) AgentInfo() map[string]interface{} {
|
||||||
data := map[string]interface{}{
|
data := map[string]interface{}{
|
||||||
"System": runtime.GOOS, "Kernel": osinfo.GetKernelInfo()["Release"],
|
"System": runtime.GOOS, "Release": osinfo.GetKernelInfo()["Release"],
|
||||||
"hostname": osinfo.GetKernelInfo()["Hostname"],
|
"hostname": osinfo.GetKernelInfo()["Hostname"],
|
||||||
"osMachine": osinfo.GetKernelInfo()["Machine"],
|
"osMachine": osinfo.GetKernelInfo()["Machine"],
|
||||||
"diskTotal": osinfo.GetDiskUsage()["total"],
|
"diskTotal": osinfo.GetDiskUsage()["total"],
|
||||||
|
|
Loading…
Reference in a new issue