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"
|
||||
)
|
||||
|
||||
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/"
|
||||
|
|
2
debian/ahenk-go.service
vendored
2
debian/ahenk-go.service
vendored
|
@ -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]
|
||||
|
|
|
@ -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"],
|
||||
|
|
Loading…
Reference in a new issue