14 07 2015
Ubuntu – Tomcat Service 등록
vi tomcat.sh
상단에 description ,processname등을 입력한다.
1 2 3 4 5 6 7 8 9 10 11 |
#!/bin/bash ### BEGIN INIT INFO <span id="line-2" class="anchor"></span># Provides: scriptname <span id="line-3" class="anchor"></span># Required-Start: $remote_fs $syslog <span id="line-4" class="anchor"></span># Required-Stop: $remote_fs $syslog <span id="line-5" class="anchor"></span># Default-Start: 2 3 4 5 <span id="line-6" class="anchor"></span># Default-Stop: 0 1 6 <span id="line-7" class="anchor"></span># Short-Description: Start daemon at boot time <span id="line-8" class="anchor"></span># Description: Enable service provided by daemon. <span id="line-9" class="anchor"></span>### END INIT INFO |
링크를 걸어준다.
1 |
ln -s /app/dev/xxx/tomcat.sh /etc/init.d/Tomcat |
권한변경
1 |
chmod -R 755 /etc/init.d/Tomcat |
서비스등록
1 |
sudo update-rc.d Tomcat defaults |
이상
service Tomcat start
TroubleShooting
서비스해지
sudo update-rc.d -f Tomcat remove
warnging missing LSB information
Ubuntu – The APR based Apache Tomcat Native library which allows optimal ~ APR 못차는 에러 Window 2008 IIS, FTP 설정 및 32bit 로 실행하기