diff options
| author | CoprDistGit <infra@openeuler.org> | 2026-11-27 07:38:26 +0000 |
|---|---|---|
| committer | CoprDistGit <infra@openeuler.org> | 2026-11-27 07:38:26 +0000 |
| commit | ccc3badf8e850615abe7c93c8badb9d5e027c854 (patch) | |
| tree | bb465c2ac15156a59563b3c2b6aaf62285698283 /tomcat-named.service | |
| parent | b2c2e545b019af5753f7935a994902010c220df3 (diff) | |
automatic import of tomcat10.1.54openeuler24.03_LTS_SP3
Diffstat (limited to 'tomcat-named.service')
| -rw-r--r-- | tomcat-named.service | 24 |
1 files changed, 24 insertions, 0 deletions
diff --git a/tomcat-named.service b/tomcat-named.service new file mode 100644 index 0000000..16d337a --- /dev/null +++ b/tomcat-named.service @@ -0,0 +1,24 @@ +# Systemd unit file for tomcat instances. +# +# To create clones of this service: +# 0. systemctl enable tomcat10.1.54@name.service +# 1. create catalina.base directory structure in +# /var/lib/tomcats/name +# 2. profit. + +[Unit] +Description=Apache Tomcat Web Application Container +After=syslog.target network.target + +[Service] +Type=simple +EnvironmentFile=/etc/tomcat10.1.54/tomcat10.1.54.conf +Environment="NAME=%i" +EnvironmentFile=-/etc/sysconfig/tomcat10.1.54@%i +ExecStart=/usr/libexec/tomcat10.1.54/server start +ExecStop=/usr/libexec/tomcat10.1.54/server stop +SuccessExitStatus=143 +User=tomcat + +[Install] +WantedBy=multi-user.target |
