# vi /usr/lib/systemd/system/tomcat.service


tomcat.service 파일을 만들어준 뒤


[Unit]
Description=Tomcat7 Service
After=syslog.target
After=network.target
 
[Service]
Type=forking
ExecStart=/back/tomcat/bin/catalina.sh start
ExecStop=/back/tomcat/bin/catalina.sh stop
 
[Install]
WantedBy=multi-user.target