Tomcat

/usr/lib/systemd/system/tomcatd.service

[Unit]
Description=Tomcat
After=network.target
  
[Service]
Type=oneshot
ExecStart=/usr/local/tomcat/bin/startup.sh
ExecStop=/usr/local/tomcat/bin/shutdown.sh
ExecReload=/bin/kill -s HUP $MAINPID
RemainAfterExit=yes
 
[Install]
WantedBy=multi-user.target

SonarQube

/usr/lib/systemd/system/sonard.service

[Unit]
Description=SonarQube
After=network.target
  
[Service]
Type=forking
ExecStart=/usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh start
ExecStop=/usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh stop
ExecReload=/usr/local/sonarqube-7.5/bin/linux-x86-64/sonar.sh restart
User=sonar
Group=sonar
 
[Install]
WantedBy=multi-user.target
Alias=sonarqube

Gerrit Code Review

/usr/lib/systemd/system/gerritd.service

[Unit]
Description=Gerrit Code Review
After=network.target httpd.service
  
[Service]
Type=oneshot
RemainAfterExit=yes
ExecStart=/usr/local/review_site/bin/gerrit.sh start
ExecStop=/usr/local/review_site/bin/gerrit.sh stop
ExecReload=/usr/local/review_site/bin/gerrit.sh restart
 
[Install]
WantedBy=multi-user.target

Nacos

/usr/lib/systemd/system/nacosd.service

[Unit]
Description=Nacos
After=network.target

[Service]
Type=oneshot
ExecStart=/usr/local/nacos/bin/startup.sh -m standalone
ExecStop=/usr/local/nacos/bin/shutdown.sh
ExecReload=/bin/kill -s HUP $MAINPID
RemainAfterExit=yes

[Install]
WantedBy=multi-user.target