title: How to fix the Failed to start the systemd service using puppet
body: <p>I have the following systemd file I am trying to execute.</p>
  <pre><code>[Unit]
  Description=WSO2 Micro Integrator Dashboards
  After=network.target
  
  [Service]
  ExecStart=/bin/sh /mnt/4.0.1/wso2mi-dashboard-4.0.1/bin/dashboard.sh start
  ExecStop=/bin/sh /mnt/4.0.1/wso2mi-dashboard-4.0.1/bin/dashboard.sh stop
  ExecReload=/bin/sh /mnt/4.0.1/wso2mi-dashboard-4.0.1/bin/dashboard.sh restart
  PIDFile=/mnt/4.0.1/wso2mi-dashboard-4.0.1/runtime.pid
  User=wso2carbon
  Group=wso2
  Type=forking
  Restart=on-failure
  RestartSec=5
  StartLimitInterval=60s
  StartLimitBurst=3
  LimitNOFILE=65536
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  <p>When I try to run the file using the <code>puppet</code> as below:</p>
  <pre><code>$service_name='wso2mi-dashboard'
  
    service { $service_name:
      enable    =&gt; true,
      ensure    =&gt; running,
      subscribe =&gt; File[&quot;binary&quot;],
      require   =&gt; Exec['systemctl daemon-reload']
    }
  </code></pre>
  <p>When I see the <code>journalctl -xe</code> logs, I get the following error:</p>
  <pre><code>-- The result is failed.
  Dec 13 19:28:27 v2-tfl-triapps-test-midashboard-i-094e69fc75bb91812 systemd[1]: Unit wso2mi-dashboard.service entered failed state.
  Dec 13 19:28:27 v2-tfl-triapps-test-midashboard-i-094e69fc75bb91812 systemd[1]: wso2mi-dashboard.service failed.
  </code></pre>
  <p>Can someone please help me to understand what I am doing wrong?</p>