在OS X上自动启动和closuresJIRA

只是想知道什么是适当的OSX方式启动和自动closures(独立)JIRA安装(分别上电和关机)将是? 宁愿避免手动编辑OSX启动脚本,但愿意这样做,如果这是正确的或唯一的方法。

您可能需要通过launchctl运行它: https : //developer.apple.com/library/mac/#documentation/darwin/reference/manpages/man1/launchctl.1.html

你可以编写一个简单的脚本,并在$HOME/.launchd.conf启动

以下是JIRA的一些文档: http : //confluence.atlassian.com/display/JIRA044/Configure+JIRA+as+service+on+Mac+OS+X

这里是一个脚本示例:

 #!/bin/bash function shutdown() { date echo "Shutting down JIRA" $JIRA_HOME/bin/stop-jira.sh } date echo "Starting JIRA" export JIRA_PID=/tmp/$$ # Uncomment to increase Tomcat's maximum heap allocation # export JAVA_OPTS=-Xmx512M $JAVA_OPTS . $JIRA_HOME/bin/start-jira.sh # Allow any signal that would kill a process to stop Tomcat trap shutdown HUP INT QUIT ABRT KILL ALRM TERM TSTP echo "Waiting for `cat $JIRA_PID`" wait `cat $JIRA_PID