Module Expr Str Import alias Import alias ImportFrom alias Assign NameStore SubscriptLoad AttributeLoad NameLoad attr Index Num If Call AttributeLoad AttributeLoad NameLoad attr attr Str body If CompareNotIn Str Call NameLoad ListLoad Str Str NameLoad body Expr Call AttributeLoad NameLoad attr Num orelse If CompareNotIn Str Call NameLoad ListLoad Str NameLoad Str body Expr Call AttributeLoad NameLoad attr Num
N/A N/A 
Check if a service is running
 N/A os N/A sys subprocess check_output N/A service N/A N/A sys argv N/A 1 N/A N/A N/A N/A os path exists /etc/redhat-release N/A N/A N/A active (running) N/A check_output N/A systemctl status service N/A N/A N/A N/A sys exit 1 N/A N/A N/A start/running N/A check_output N/A service service status N/A N/A N/A N/A sys exit 1