title: SUSE service status is active (exited) instead of active (running)
body: <p>I have one service csiJetty.service, the unit file is automatically generated, but I used command &quot;systemctl edit --full csiJetty.service&quot; to make it as a systemd unit file instead of sysV unit file.</p>
  <p>But I always get the service status as &quot;active (exited)&quot;, cannot get the status &quot;active (running)&quot;</p>
  <p>I put my unit file below, can anybody know why the service status is always active (exited) instead of active (running)?</p>
  <pre><code>
  [Unit]
  Documentation=man:systemd-sysv-generator(8)
  SourcePath=/etc/init.d/csiJetty
  Description=LSB: Jetty  WebServer for security components, csi, eat, pnf
  
  [Service]
  Type=exec
  Restart=no
  TimeoutSec=5min
  IgnoreSIGPIPE=no
  KillMode=process
  GuessMainPID=no
  RemainAfterExit=yes
  SuccessExitStatus=5 6
  ExecStart=/etc/init.d/csiJetty start
  ExecStop=/etc/init.d/csiJetty stop
  </code></pre>
  <p>the start_function in the csiJetty file is:</p>
  <pre><code>start_function() {
          echo &quot;111111111111111111111   start&quot;
          echo -n &quot;Starting $JETTY_SERV_NAME: &quot;
          cd ${csi_HOME}
  
          csi_SERVER_PID=`get_csiadminserver_pid`
  
          if [ ${csi_SERVER_PID} ]
          then
                  echo &quot;${JETTY_SERV_NAME} is already running&quot;
                  return 1
          fi
  
          su - ${GEHC_SECURITY_USER} -s /bin/bash -c &quot;cd ${csi_HOME};./jetty/WebAdmin.sh &gt;&amp; ${csi_HOME}/jetty/logs/csiAdminSrvOut &amp;&quot;
          sleep 1
          csi_SERVER_PID=`get_csiadminserver_pid`
          if [ ${csi_SERVER_PID} ]
          then
                  echo ${csi_SERVER_PID} &gt; ${PID_FILE}
          fi
  
  
  
          return 0
  }
  </code></pre>