title: How to ignore "Failed to get properties: Access denied"
body: <p>When I am trying to get the service status, I see some errors. I need to redirect them. I have tried <code>&gt;,2&gt;</code> and other redirect options, but no luck. </p>
  
  <p>I need to execute this command without sudo and root user.</p>
  
  <pre><code>mouli@XXXXXXXXXX ~ $ systemctl status consul 
  Failed to get properties: Access denied
  
  mouli@XXXXXXXXXX ~ $ echo $?
  1
  
  mouli@XXXXXXXXXX ~ $ systemctl status consul &gt; /dev/null 2 &gt;&amp; 1
  Failed to get unit for PID 2: Access denied
  Failed to get properties: Access denied
  
  mouli@XXXXXXXXXX ~ $ systemctl status consul 2&gt; /dev/null
  Failed to get properties: Access denied
  
  mouli@XXXXXXXXXX ~ $ systemctl status consul &gt; /dev/null
  Failed to get properties: Access denied
  </code></pre>
  
  <p>Your help is appreciated. Thanks.</p>