Uploaded image for project: 'Crowd Data Center'
  1. Crowd Data Center
  2. CWD-1711

Document how to start Crowd automatically on UNIX/Linux

    • Icon: Suggestion Suggestion
    • Resolution: Fixed
    • None
    • Documentation
    • None
    • CAC
    • Our product teams collect and evaluate feedback from a number of different sources. To learn more about how we use customer feedback in the planning process, check out our new feature policy.

      We already have instructions on setting up Crowd as a Windows service, so that it will start automatically on startup. It would be nice to create some instructions for starting automatically on UNIX/Linux.

      See comments on the installation guide. (Comments will be removed on 13/1/2010.)

      =========================
      DOC TASKS
      =========================

      • DONE: Dev review - DoF and Justin
        Requested by email 5/1/2010
      • DONE: Respond to comments on installn guide.

            [CWD-1711] Document how to start Crowd automatically on UNIX/Linux

            Katherine Yabut made changes -
            Workflow Original: JAC Suggestion Workflow [ 3363607 ] New: JAC Suggestion Workflow 3 [ 3627856 ]
            Status Original: RESOLVED [ 5 ] New: Closed [ 6 ]
            Monique Khairuliana (Inactive) made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 - restricted [ 1509594 ] New: JAC Suggestion Workflow [ 3363607 ]
            Assignee Original: SarahA [ smaddox ]
            Issue Type Original: Task [ 3 ] New: Suggestion [ 10000 ]
            Owen made changes -
            Workflow Original: Simplified Crowd Development Workflow v2 [ 1391726 ] New: Simplified Crowd Development Workflow v2 - restricted [ 1509594 ]
            Owen made changes -
            Workflow Original: Crowd Development Workflow v2 [ 272552 ] New: Simplified Crowd Development Workflow v2 [ 1391726 ]
            jawong.adm made changes -
            Workflow Original: JIRA Bug Workflow v2 [ 184860 ] New: Crowd Development Workflow v2 [ 272552 ]
            SarahA made changes -
            Assignee New: SarahA [ smaddox ]
            SarahA made changes -
            Resolution New: Fixed [ 1 ]
            Status Original: Verified [ 10005 ] New: Resolved [ 5 ]
            SarahA made changes -
            Description Original: We already have instructions on setting up Crowd as a Windows service, so that it will start automatically on startup. It would be nice to create some instructions for starting automatically on UNIX/Linux.

            * See a [comment|http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID?focusedCommentId=203391939#comment-203391939] from Matthew Block, quoted below:
            {quote}
            You can have crowd start automatically on Unix/Linux following more or less the exact same instructions as provided in the [Confluence wiki|http://confluence.atlassian.com/pages/viewpage.action?pageId=183148] .  Here is the code for the init.d file I created.  I named it crowd.init.d inside my main CROWD_INSTALL directory and then created a symbolic link from /etc/init.d/crowd to that file.
            {code}
             #!/bin/bash
            # Crowd startup script
            #chkconfig: 2345 80 05
            #description: Crowd


            # Based on script at http://www.bifrost.org/problems.html

            RUN_AS_USER=crowd
            CATALINA_HOME=/opt/crowd/apache-tomcat

            start() {
                    echo "Starting Crowd: "
                    if [ "x$USER" != "x$RUN_AS_USER" ]; then
                      su - $RUN_AS_USER -c "$CATALINA_HOME/bin/startup.sh"
                    else
                      $CATALINA_HOME/bin/startup.sh
                    fi
                    echo "done."
            }
            stop() {
                    echo "Shutting down Confluence: "
                    if [ "x$USER" != "x$RUN_AS_USER" ]; then
                      su - $RUN_AS_USER -c "$CATALINA_HOME/bin/shutdown.sh"
                    else
                      $CATALINA_HOME/bin/shutdown.sh
                    fi
                    echo "done."
            }

            case "$1" in
              start)
                    start
                    ;;
              stop)
                    stop
                    ;;
              restart)
                    stop
                    sleep 10
                    #echo "Hard killing any remaining threads.."
                    #kill -9 `cat $CATALINA_HOME/work/catalina.pid`
                    start
                    ;;
              *)
                    echo "Usage: $0 {start|stop|restart}"
            esac

            exit 0
            {code}
            {quote}

            * See also other comments on [the page|http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID].

            =========================
            DOC TASKS
            =========================

            * {color:green}DONE:{color} Create an FAQ for "Setting Crowd to run automatically and to use an unprivileged system user on UNIX".
            http://confluence.atlassian.com/display/CROWD/Setting+Crowd+to+run+automatically+and+use+an+unprivileged+system+user+on+UNIX

            * TO DO: Dev review - DoF and Justin
            Requested by email 5/1/2010

            * TO DO: Link to the new FAQ from the following page:
            http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID

            * TO DO: Respond to comments on installn guide.

            * TO DO: Add comment to CWD-1777
            New: We already have instructions on setting up Crowd as a Windows service, so that it will start automatically on startup. It would be nice to create some instructions for starting automatically on UNIX/Linux.

            See comments on [the installation guide|http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID]. (Comments will be removed on 13/1/2010.)

            =========================
            DOC TASKS
            =========================

            * {color:green}DONE:{color} Create an FAQ for "Setting Crowd to run automatically and to use an unprivileged system user on UNIX".
            http://confluence.atlassian.com/display/CROWD/Setting+Crowd+to+run+automatically+and+use+an+unprivileged+system+user+on+UNIX

            * {color:green}DONE:{color} Dev review - DoF and Justin
            Requested by email 5/1/2010

            * {color:green}DONE:{color} Link to the new FAQ from the following page:
            http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID

            * {color:green}DONE:{color} Respond to comments on installn guide.

            * {color:green}DONE:{color} Add comment to CWD-1777
            SarahA made changes -
            Status Original: Open [ 1 ] New: Verified [ 10005 ]
            SarahA made changes -
            Description Original: We already have instructions on setting up Crowd as a Windows service, so that it will start automatically on startup. It would be nice to create some instructions for starting automatically on UNIX/Linux.

            * See a [comment|http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID?focusedCommentId=203391939#comment-203391939] from Matthew Block, quoted below:
            {quote}
            You can have crowd start automatically on Unix/Linux following more or less the exact same instructions as provided in the [Confluence wiki|http://confluence.atlassian.com/pages/viewpage.action?pageId=183148] .  Here is the code for the init.d file I created.  I named it crowd.init.d inside my main CROWD_INSTALL directory and then created a symbolic link from /etc/init.d/crowd to that file.
            {code}
             #!/bin/bash
            # Crowd startup script
            #chkconfig: 2345 80 05
            #description: Crowd


            # Based on script at http://www.bifrost.org/problems.html

            RUN_AS_USER=crowd
            CATALINA_HOME=/opt/crowd/apache-tomcat

            start() {
                    echo "Starting Crowd: "
                    if [ "x$USER" != "x$RUN_AS_USER" ]; then
                      su - $RUN_AS_USER -c "$CATALINA_HOME/bin/startup.sh"
                    else
                      $CATALINA_HOME/bin/startup.sh
                    fi
                    echo "done."
            }
            stop() {
                    echo "Shutting down Confluence: "
                    if [ "x$USER" != "x$RUN_AS_USER" ]; then
                      su - $RUN_AS_USER -c "$CATALINA_HOME/bin/shutdown.sh"
                    else
                      $CATALINA_HOME/bin/shutdown.sh
                    fi
                    echo "done."
            }

            case "$1" in
              start)
                    start
                    ;;
              stop)
                    stop
                    ;;
              restart)
                    stop
                    sleep 10
                    #echo "Hard killing any remaining threads.."
                    #kill -9 `cat $CATALINA_HOME/work/catalina.pid`
                    start
                    ;;
              *)
                    echo "Usage: $0 {start|stop|restart}"
            esac

            exit 0
            {code}
            {quote}

            * See also other comments on [the page|http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID].

            =========================
            DOC TASKS
            =========================

            * TO DO: Create an FAQ for "Setting Crowd to run automatically and to use an unprivileged system user on UNIX".

            * TO DO: Dev review - DoF and Justin

            * TO DO: Link to the new FAQ from the following pages:
            http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID

            * TO DO: Respond to comments on installn guide.

            * TO DO: Add comment to CWD-1777
            New: We already have instructions on setting up Crowd as a Windows service, so that it will start automatically on startup. It would be nice to create some instructions for starting automatically on UNIX/Linux.

            * See a [comment|http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID?focusedCommentId=203391939#comment-203391939] from Matthew Block, quoted below:
            {quote}
            You can have crowd start automatically on Unix/Linux following more or less the exact same instructions as provided in the [Confluence wiki|http://confluence.atlassian.com/pages/viewpage.action?pageId=183148] .  Here is the code for the init.d file I created.  I named it crowd.init.d inside my main CROWD_INSTALL directory and then created a symbolic link from /etc/init.d/crowd to that file.
            {code}
             #!/bin/bash
            # Crowd startup script
            #chkconfig: 2345 80 05
            #description: Crowd


            # Based on script at http://www.bifrost.org/problems.html

            RUN_AS_USER=crowd
            CATALINA_HOME=/opt/crowd/apache-tomcat

            start() {
                    echo "Starting Crowd: "
                    if [ "x$USER" != "x$RUN_AS_USER" ]; then
                      su - $RUN_AS_USER -c "$CATALINA_HOME/bin/startup.sh"
                    else
                      $CATALINA_HOME/bin/startup.sh
                    fi
                    echo "done."
            }
            stop() {
                    echo "Shutting down Confluence: "
                    if [ "x$USER" != "x$RUN_AS_USER" ]; then
                      su - $RUN_AS_USER -c "$CATALINA_HOME/bin/shutdown.sh"
                    else
                      $CATALINA_HOME/bin/shutdown.sh
                    fi
                    echo "done."
            }

            case "$1" in
              start)
                    start
                    ;;
              stop)
                    stop
                    ;;
              restart)
                    stop
                    sleep 10
                    #echo "Hard killing any remaining threads.."
                    #kill -9 `cat $CATALINA_HOME/work/catalina.pid`
                    start
                    ;;
              *)
                    echo "Usage: $0 {start|stop|restart}"
            esac

            exit 0
            {code}
            {quote}

            * See also other comments on [the page|http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID].

            =========================
            DOC TASKS
            =========================

            * {color:green}DONE:{color} Create an FAQ for "Setting Crowd to run automatically and to use an unprivileged system user on UNIX".
            http://confluence.atlassian.com/display/CROWD/Setting+Crowd+to+run+automatically+and+use+an+unprivileged+system+user+on+UNIX

            * TO DO: Dev review - DoF and Justin
            Requested by email 5/1/2010

            * TO DO: Link to the new FAQ from the following page:
            http://confluence.atlassian.com/display/CROWD/Installing+Crowd+and+CrowdID

            * TO DO: Respond to comments on installn guide.

            * TO DO: Add comment to CWD-1777

              Unassigned Unassigned
              smaddox SarahA
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

                Created:
                Updated:
                Resolved: