17 lines
367 B
Desktop File
17 lines
367 B
Desktop File
[Unit]
|
|
Description=Tomcat %u.
|
|
After=network.target
|
|
|
|
[Service]
|
|
WorkingDirectory=%h
|
|
Environment="CATALINA_BASE=%h"
|
|
EnvironmentFile=%h/conf/env
|
|
UMask=0002
|
|
ExecStart=/usr/share/tomcat7/bin/startup.sh
|
|
ExecStop=/usr/share/tomcat7/bin/shutdown.sh
|
|
ExecStopPost=/bin/sh -c date | /usr/bin/mail -s "%H/%u : Shutdown instance" %u
|
|
Type=forking
|
|
|
|
[Install]
|
|
WantedBy=default.target
|