官方指南看来已经过时,更新一下。
#!/bin/bash # Jira startup script #chkconfig: 2345 80 05 #description: Jira # JIRA/Confluence Linux service controller script APP=jira APP_BIN=/opt/atlassian/jira/bin start() { $APP_BIN/start-jira.sh } stop() { $APP_BIN/stop-jira.sh } case "$1" in start) start ;; stop) stop ;; restart) service $APP stop sleep 8 service $APP start ;; *) echo "Usage: service $APP {start|stop|restart}" esac exit 0