「mac」tomcat起動スクリプトを設定するメモ

$sudo chmod +x /usr/local/tomcat/bin/*.sh
$vi /usr/local/bin/tomcat
#!/bin/bash
case $1 in
start)
sh /usr/local/etc/tomcat/tomcat/bin/startup.sh
;;
stop)
sh /usr/local/etc/tomcat/tomcat/bin/shutdown.sh
;;
restart)
sh /usr/local/etc/tomcat/tomcat/bin/shutdown.sh
sh /usr/local/etc/tomcat/tomcat/bin/startup.sh
;;
*)
echo “Usage: start|stop|restart”
;;
esac

exit 0
$tomcat start
$tomcat stop
$tomcat restart

IOS

Posted by arkgame