[Unit] Description=Tomcat VCE4 Web Server After=network.target [Service] Type=forking User=vceadmin Group=tomcat Environment="SHUTDOWN_WAIT=60" "SHUTDOWN_VERBOSE=true" ExecStart=/opt/campuslan/tomcat/bin/startup.sh ExecStop=/opt/campuslan/tomcat/bin/shutdown.sh # The stop script needs to handle the logic you provided: waiting, checking, and force killing if necessary. SuccessExitStatus=143 TimeoutStopSec=60 [Install] WantedBy=multi-user.target