centos7 전까진 service 를 등록해 사용해

상당히 불편했다 

그런데 7부터는 systemctl 로 간편하게 관리가 가능하다

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

에등록

systemctl start service1 시작 
systemctl stop service1 중지 
systemctl restart service1 재시작
systemctl mask service1 서비스 제외
systemctl unmask service1 서비스 등록 
systemctl enable service1 시작시 
systemctl disable service1 시작지 등록