title: Cannot start systemd service
body: <p>I have a spring boot executable jar in a digital ocean droplet. I'm able to execute the jar using  <code>java -jar myapp.jar</code> Now I want to have i run as a service.</p>
  
  <p>I've created the file <strong>/etc/systemd/system/myapp.service</strong> with these contents</p>
  
  <pre><code>[Unit]
  Description=myapp
  After=syslog.target
  
  [Service]
  User=kevin
  ExecStart=/var/myapp/myapp-backend-1.0-SNAPSHOT.jar
  SuccessExitStatus=143
  
  [Install]
  WantedBy=multi-user.target
  </code></pre>
  
  <p>Then enabled it to start at system startup</p>
  
  <pre><code>systemctl enable myapp.service
  </code></pre>
  
  <p>I'm now attempting to start the service</p>
  
  <pre><code>systemctl start myapp.service
  </code></pre>
  
  <p>But I'm getting this error</p>
  
  <blockquote>
    <p>Failed to start myapp.service: Unknown unit: myapp.service
    See system logs and 'systemctl status myapp.service' for details.</p>
  </blockquote>
  
  <p>running <code>systemctl status myapp.service</code> return this:</p>
  
  <pre><code>Failed to get properties: No such interface ''
  </code></pre>