Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Simple script to start / stop a jackrabbit server
Shell
tree: 385e36e40d

Fetching latest commit…

Cannot retrieve the latest commit at this time

Failed to load latest commit information.
.gitignore
README
jackrabbit.sh

README

Simple script to start / stop a Jackrabbit server.

Author: D. Barsotti <daniel.barsotti@liip.ch>


A script to start and stop apache jackrabbit according to the init.d mechanism

This relies on a PID file to check if Jackrabbit is running.
If you kill Jackrabbit without removing the PID file, you will not be able to start Jackrabbit with this script until you manually remove the PID file.

Installation
------------

    mkdir -p /opt/jackrabbit-startup    # or wherever you want to put the code
    cd /opt/jackrabbit-startup
    git clone https://github.com/sixty-nine/Jackrabbit-startup-script.git
    ## <edit jackrabbit.sh to configure some settings> ##
    ln -s /opt/jackrabbit-startup/jackrabbit.sh /etc/init.d/jackrabbit
    chmod 755 /etc/init.d/jackrabbit
    # on debian, register with
    update-rc.d jackrabbit defaults
    # if not using a system that provides update-rc.d, you hopefully know how
    # to proceed...


Usage
-----

The service should be started and stopped automatically from now on.

If you ever want to control it manually, you can run

    /etc/init.d/jackrabbit start|stop|status

If you have a pid file blocking startup, you can just stop and then start
jackrabbit again. You will get an error on stop that you can ignore.

    /etc/init.d/jackrabbit stop
    /etc/init.d/jackrabbit start
Something went wrong with that request. Please try again.