code: def systemd_running_state(name, path=None):
      '''
      Get the operational state of a systemd based container
  
      path
          path to the container parent
          default: /var/lib/lxc (system default)
  
          .. versionadded:: 2015.8.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion lxc.systemd_running_state ubuntu
  
      '''
      try:
          ret = run_all(name,
                        'systemctl is-system-running',
                        path=path,
                        ignore_retcode=True)['stdout']
      except CommandExecutionError:
          ret = ''
      return ref systemd_running_state(name, path=None):
      '''
      Get the operational state of a systemd based container
  
      path
          path to the container parent
          default: /var/lib/lxc (system default)
  
          .. versionadded:: 2015.8.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion lxc.systemd_running_state ubuntu
  
      '''
      try:
          ret = run_all(name,
                        'systemctl is-system-running',
                        path=path,
                        ignore_retcode=True)['stdout']
      except CommandExecutionError:
          ret = ''
      return ret
docs: Get the operational state of a systemd based container
  
      path
          path to the container parent
          default: /var/lib/lxc (system default)
  
          .. versionadded:: 2015.8.0
  
      CLI Example:
  
      .. code-block:: bash
  
          salt myminion lxc.systemd_running_state ubuntu