fix: change ahenk daemon name

This commit is contained in:
Aliberk Sandıkçı 2023-08-25 15:13:52 +03:00
parent baef23ff04
commit f8bafbbff0
Signed by: asandikci
GPG Key ID: 25C67A03B5666BC1
3 changed files with 6 additions and 6 deletions

View File

@ -11,8 +11,8 @@ import (
"golang.org/x/exp/slices"
)
const PidFile = "/run/ahenkd-go.pid"
const ExecutablePath = "/usr/bin/ahenkd-go"
const PidFile = "/run/ahenk-go.pid"
const ExecutablePath = "/usr/bin/ahenk-go"
const DataDir = "/etc/ahenk-go/"
const LogFile = DataDir + "ahenk.log"
const LibDir = "/usr/share/ahenk-go/"

View File

@ -10,7 +10,7 @@ Group=root
ExecStart=/usr/bin/ahenk-go start
ExecStop=/usr/bin/ahenk-go stop
ExecReload=kill -HUP $MAINPID
PIDFile=/run/ahenkd-go.pid
PIDFile=/run/ahenk-go.pid
Restart=always
[Install]

View File

@ -14,8 +14,8 @@ var ResourcesConnect plug
// return instant resource usage information
func ResourceUsage() map[string]string {
data := map[string]string{
// {'System': self.Os.name(), 'Release': self.Os.kernel_release(),
"System": runtime.GOOS, "Release": osinfo.GetKernelInfo()["Release"],
// TODO "Version":
// 'Version': self.Os.distribution_version(), 'Machine': self.Os.architecture(),
// 'CPU Physical Core Count': self.Hardware.Cpu.physical_core_count(),
// 'Total Memory': self.Hardware.Memory.total(),
@ -35,7 +35,7 @@ func ResourceUsage() map[string]string {
// return general Agent information (that changes rarely)
func (p plug) AgentInfo() 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"],
"osMachine": osinfo.GetKernelInfo()["Machine"],
"diskTotal": osinfo.GetDiskUsage()["total"],