service.status currently reports an error on FreeBSD if the service isn't running #23435
Labels
Bug
broken, incorrect, or confusing behavior
P1
Priority 1
Platform
Relates to OS, containers, platform-based utilities like FS, system based apps
severity-medium
3rd level, incorrect or bad functionality, confusing and lacks a work around
Milestone
In FreeBSD, service onestatus currently returns 1 if either the service is not running, or it simply doesn't exist. This seems to be proper handling of the service not existing case, but Salt should not treat a down status as an error:
We possibly need to parse the return on a 1, and in the case of 'is not running', squelch the error?
The simple state that is triggering this is service.dead:
The text was updated successfully, but these errors were encountered: