[Unit] Description=Apache Tomcat Documentation=https://tomcat.apache.org After=network-online.target firewalld.service Wants=network-online.target [Service] Type=forking Group=root User=root ExecStart=/opt/tomcat/apache-tomcat-9.0.89/bin/startup.sh Restart=always PrivateTmp=true [Install] WantedBy=multi-user.target