def _status_csf():
 cmd = 'test -e /etc/csf/csf.disable'
 out = __salt__['cmd.run_all'](cmd)
 return bool(out['retcode'])

def _status_csf ( ) : cmd = 'test -e /etc/csf/csf.disable' out = __salt__ [ 'cmd.run_all' ] ( cmd ) return bool ( out [ 'retcode' ] )
return true if csf is running otherwise return false .