Tomcat-Webmin-Module/tomcat.service

19 lines
321 B
SYSTEMD
Raw Normal View History

2024-01-29 16:57:45 +00:00
[Unit]
Description=Tomcat $TOMCAT_VER
After=multi-user.target
[Service]
User=tomcat
Group=tomcat
WorkingDirectory=$CATALINA_HOME
Type=forking
Restart=always
EnvironmentFile=/etc/environment
ExecStart=$CATALINA_HOME/bin/startup.sh
ExecStop=$CATALINA_HOME/bin/shutdown.sh 60 -force
[Install]
WantedBy=multi-user.target