I have a very simple program written in Go, that runs on the background as a Linux service. It works perfectly, but the problem is with the status. When I do "sudo service program status" it says "activating" all time.
The code is here: [login to view URL]
$ sudo service program start
^C
$ sudo service program status
● [login to view URL] - SYSV: CPU
Loaded: loaded (/etc/init.d/program; bad; vendor preset: enabled)
Active: activating (start) since Wed 2019-01-16 23:26:43 CET; 1min 12s ago
Docs: man:systemd-sysv-generator(8)
Control: 18733 (program)
Tasks: 6
Memory: 1.2M
CPU: 15ms
CGroup: /[login to view URL]
├─18733 /bin/bash /etc/init.d/program start
└─18736 /usr/local/bin/program
Former IT Network/Infrastructure Manager at a key government department. Over 23 years experience in IT.
Native Spanish translator. If you are looking for English to Spanish translations that ensures that meaning and context are maintained, then I'm here to help.
Competitive prices without sacrificing quality.
Good communication. Just drop me a line and let me know what you need.
Hello, I will dix Solve bug in Golang service into your Linux. I'm interested in your project. Please send me a message so that we can discuss more.
Thanks & Regards,
Mohammad
https://www.freelancer.com/u/LinuxGun
Hello,
It's one day job. I checked your code on github and there was no issue in that which you are mentioning here. So may be it is from the server on which we are sending an api call. I ran it on my local I was not able to connect to server. Lets have chat so we can fix easily, Thanks!
I have deal with these kind of issue earlier. I am a GoLang and devops engineer. So I can help you with too many things here.
Regards
Shubham