Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add 'static' value as enabled to systemd service enabled check #637

Merged
merged 1 commit into from
Apr 13, 2016

Conversation

jmccann
Copy link
Contributor

@jmccann jmccann commented Apr 13, 2016

SystemD can have a service enabled not only when the UnitFileState is running but also when it is static.

To back this up: https://www.freedesktop.org/wiki/Software/systemd/dbus/

UnitFileState encodes the install state of the unit file of FragmentPath. It currently knows the following states: enabled, enabled-runtime, linked, linked-runtime, masked, masked-runtime, static, disabled, invalid. enabled indicates that a unit file is permanently enabled. enable-runtime indicates the unit file is only temporarily enabled, and will no longer be enabled after a reboot (that means, it is enabled via /run symlinks, rather than /etc). linked indicates that a unit is linked into /etc permanently, linked indicates that a unit is linked into /run temporarily (until the next reboot). masked indicates that the unit file is masked permanently, masked-runtime indicates that it is only temporarily masked in /run, until the next reboot. static indicates that the unit is statically enabled, i.e. always enabled and doesn't need to be enabled explicitly. invalid indicates that it could not be determined whether the unit file is enabled.

Looks like there is other good info in that article as well ... including more states that could be set for UnitFileState such as: enabled, enabled-runtime, linked, linked-runtime, masked, masked-runtime, static, disabled, invalid. enabled

@chris-rock
Copy link
Contributor

Thanks you very much @jmccann for this addition!

@chris-rock chris-rock merged commit 1e5209f into inspec:master Apr 13, 2016
@arlimus arlimus added the Type: Enhancement Improves an existing feature label Apr 17, 2016
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Type: Enhancement Improves an existing feature
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants