def running(ctid_or_name):
 return (status(ctid_or_name).split(' ')[4] == 'running')

def running ( ctid_or_name ) : return ( status ( ctid_or_name ) . split ( ' ' ) [ 4 ] == 'running' )
check apf status cli example: .