systemd_service/examples/tomcat.service

17 lines
319 B
SYSTEMD
Raw Normal View History

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