forked from saltstack/salt
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
SmartOS/Solaris: fix SMF service management
fixes saltstack#10702 The functions previously named get_enabled and get_disabled actually only queried what services were running or not This caused breakages where a state that both requested "enabled" and "running" could cause salt to start the service which would make it appear in the list of enabled services, but not actually get enabled and thus not actually come back up on reboot Those functions have been renamed to get_running and get_stopped An accurate enabled function has been written which queries the true property that determines if a service will come up at boot and disabled returns its negation. New get_enabled and get_disabled functions have also been written which accurately return the list of enabled or disabled services Those functions return full FMRIs (rather than the much shorter 'SVC' column) because that's how SMF actually works internally.
- Loading branch information
Showing
1 changed file
with
65 additions
and
11 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters