mirror of
https://github.com/nsacyber/HIRS.git
synced 2025-01-06 21:18:47 +00:00
28 lines
583 B
SYSTEMD
28 lines
583 B
SYSTEMD
|
[Unit]
|
||
|
Description=Apache Tomcat Web Application Container
|
||
|
Wants=network.target
|
||
|
After=network.target
|
||
|
|
||
|
[Service]
|
||
|
Type=forking
|
||
|
|
||
|
Environment=JAVA_HOME=/usr/lib/jvm/jre
|
||
|
|
||
|
Environment=CATALINA_PID=/opt/tomcat/temp/tomcat.pid
|
||
|
Environment=CATALINA_HOME=/opt/tomcat
|
||
|
Environment='CATALINA_OPTS=-Xms512M -Xmx1G -Djava.net.preferIPv4Stack=true'
|
||
|
Environment='JAVA_OPTS=-Djava.awt.headless=true'
|
||
|
|
||
|
ExecStart=/opt/tomcat/bin/startup.sh
|
||
|
ExecStop=/opt/tomcat/bin/shutdown.sh
|
||
|
SuccessExitStatus=143
|
||
|
|
||
|
User=tomcat
|
||
|
Group=tomcat
|
||
|
UMask=0007
|
||
|
RestartSec=10
|
||
|
Restart=always
|
||
|
|
||
|
[Install]
|
||
|
WantedBy=multi-user.target
|