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