goss icon indicating copy to clipboard operation
goss copied to clipboard

upstart has incorrect running check

Open jaymecd opened this issue 7 years ago • 3 comments
trafficstars

Declaration in service_upstart.go#L72 is incorrect command to run.

this one is for SysV:

cmd := util.NewCommand("service", s.service, "status")

this one is for Upstart:

cmd := util.NewCommand("initctl", "status", s.service)

jaymecd avatar Jun 26 '18 19:06 jaymecd

Initctl has a different syntax than service. For service it is

service servicename status

and for initctl it's

initctl status servicename

See http://manpages.ubuntu.com/manpages/trusty/man8/initctl.8.html for details

trevorrea avatar Jul 26 '18 09:07 trevorrea

Does this actually cause a false positive/negative or does service work just fine and proxy over to upstart?

aelsabbahy avatar Dec 12 '19 09:12 aelsabbahy

There is no proxy between upstart and sysV services, unfortunately. Upstart provides initctl and uses it to control jobs.

jaymecd avatar Dec 12 '19 10:12 jaymecd

Did this go away as an issue? As in, does this impact any non-EOL distro?

aelsabbahy avatar Feb 18 '23 19:02 aelsabbahy

Closing, if this is still an issue, please feel free to open an new report

aelsabbahy avatar Jul 22 '23 18:07 aelsabbahy