Created
November 30, 2020 20:29
-
-
Save ezhov-da/a040515e23d01787baa3350ae33f4680 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
[Unit] | |
Description=tomcat | |
After=network.target | |
After=syslog.target | |
[Install] | |
WantedBy=multi-user.target | |
[Service] | |
Type=forking | |
User=root | |
Group=root | |
ExecStart=/usr/bin/sh /opt/apache-tomcat-7.0.65/bin/startup.sh | |
ExecStop=/usr/bin/sh /opt/apache-tomcat-7.0.65/bin/shutdown.sh | |
WorkingDirectory=/opt/apache-tomcat-7.0.65/bin | |
Restart=always | |
RestartSec=10 |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment