Documentation for JIRA 5.2. Documentation for other versions of JIRA is available too.

*nix ベースのオペレーティングシステム管理は、アトラシアン サポートの対象外です。このドキュメントは、参考用のみにご利用下さい。

*nix ベースの BSD オペレーティングシステム上におけるベストプラクティスは、必要な許可のみを備えた専用ユーザーとして各サービス(JIRA を含む)をインストール、構成および実行する事です。

JIRA を FreeBSD 上で自動的に起動させる方法:

  1. As root, create the file /usr/local/etc/rc.d/jira.sh (code shown below), which will be responsible for starting up JIRA after a reboot (or when manually invoked). If you are not using postgresql for your database, change the REQUIRE line to whatever is in the PROVIDE line in your database init script.

    #!/bin/sh
    #
    # Startup script for JIRA on FreeBSD
    #
    # This goes in /usr/local/etc/rc.d and gets run at boot-time.
    
    # PROVIDE: jira
    # REQUIRE: postgresql
    # KEYWORD: shutdown
    
    #
    # Add the following lines to /etc/rc.conf to enable jira:
    #
    #jira_enable="YES"
    #
    jira_enable="${jira_enable-NO}"
    
    . /etc/rc.subr
    
    name="jira"
    rcvar=`set_rcvar`
    start_cmd="${name}_start"
    stop_cmd="${name}_stop"
    
    jira_start()
    {
        echo -n " Starting JIRA"
        su - atlassian -c '/home/atlassian/jira/bin/startup.sh'
    }
    
    jira_stop()
    {
        echo -n " Stopping JIRA"
        su - atlassian -c '/home/atlassian/jira/bin/shutdown.sh'
    }
    
    load_rc_config $name
    run_rc_command "$1"
    
  2. 初期化スクリプトを実行可能にします:

    chmod \+x /usr/local/etc/rc.d/jira.sh
    
  3. 初期化スクリプトを読み込み専用にします:

    chmod \-w /usr/local/etc/rc.d/jira.sh
    
  4. Add the following line to /etc/rc.conf

    jira_enable="YES"
    

More information can be found in this article.

  • ラベルなし