Last active
February 24, 2018 13:14
-
-
Save UZPENG/924ab1c613e406a488339ddf8b5f93ec to your computer and use it in GitHub Desktop.
centos配置tomcat由systemd控制
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
[Unit] | |
Description=Apache Tomcat Web Application Container | |
After=syslog.target network.target | |
[Service] | |
Type=forking | |
PIDFile=/opt/tomcat/tomcat.pid | |
ExecStart=/opt/tomcat/bin/catalina.sh start | |
ExecReload=/bin/kill -s HUP $MAINPID | |
ExecStop=/bin/kill -s QUIT $MAINPID | |
PrivateTmp=true | |
SuccessExitStatus=143 | |
[Install] | |
WantedBy=multi-user.target |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment