diff options
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 |
