Created
August 16, 2017 16:48
-
-
Save gwaters/430ca52faa8096b28ff2c021e522693b to your computer and use it in GitHub Desktop.
tomcat
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# Systemd unit file for tomcat | |
# | |
# To create clones of this service: | |
# 1) By default SERVICE_NAME=tomcat. When cloned, the value must be defined | |
# before tomcat-sysd is called. | |
# 2) Create /etc/sysconfig/${SERVICE_NAME} from /etc/sysconfig/tomcat | |
# to override tomcat defaults | |
[Unit] | |
Description=Apache Tomcat Web Application Container | |
After=syslog.target network.target | |
[Service] | |
Type=simple | |
Environment="SERVICE_NAME=tomcat-dev" | |
EnvironmentFile=/etc/tomcat/tomcat.conf | |
EnvironmentFile=-/etc/sysconfig/tomcat-dev | |
ExecStart=/usr/libexec/tomcat/server start | |
ExecStop=/usr/libexec/tomcat/server stop | |
SuccessExitStatus=143 | |
User=tomcat | |
Group=tomcat | |
[Install] |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment