Fix systemd service enabled check

This commit is contained in:
Jacob McCann 2016-01-11 15:32:33 -06:00
parent efc85d89ee
commit f25ab3a373
2 changed files with 2 additions and 2 deletions

View file

@ -142,7 +142,7 @@ class Systemd < ServiceManager
params['SubState'] == 'running' ? (running = true) : (running = false)
# test via systemctl --quiet is-enabled
# ActiveState values eg.g inactive, active
params['ActiveState'] == 'active' ? (enabled = true) : (enabled = false)
params['UnitFileState'] == 'enabled' ? (enabled = true) : (enabled = false)
{
name: params['Id'],

View file

@ -2,5 +2,5 @@ Id=sshd.service
Names=sshd.service
Description=OpenSSH server daemon
LoadState=loaded
ActiveState=active
UnitFileState=enabled
SubState=running