Created
October 27, 2014 20:18
-
-
Save jimi-c/684612137d29a90b085f to your computer and use it in GitHub Desktop.
This file contains hidden or 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
def check_systemd(name): | |
# verify service is managed by systemd | |
systemd_enabled = 'false' | |
f = open('/proc/1/cmdline', 'r') | |
for line in f: | |
if 'systemd' in line: | |
return True | |
return False |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment