Sha256: b2db28c59e1a83ccfa4dd63e70343c9e7563a6be2fbdbce26b62ad58a5012b32

Contents?: true

Size: 1.13 KB

Versions: 15

Compression:

Stored size: 1.13 KB

Contents

#! /bin/sh
#
# Copyright (c) 2007 Urbacon Ltd.
#
# System startup script for the RubyCAS-Server
#
# Instructions:
#   1. Rename this file to 'rubycas-server'
#   2. Copy it to your '/etc/init.d' directory
#   3. chmod +x /etc/init.d/rubycas-server
#
# chkconfig - 85 15
# description: Provides single-sign-on authentication for web applications.
#
### BEGIN INIT INFO
# Provides: rubycas-server
# Required-Start: $syslog
# Should-Start:
# Required-Stop:  $syslog
# Should-Stop:
# Default-Start:  3 5
# Default-Stop:   0 1 2 6
# Description:    Start the RubyCAS-Server
### END INIT INFO

CASSERVER_CTL=rubycas-server-ctl

# Gracefully exit if the controller is missing.
which $CASSERVER_CTL > /dev/null || exit 0

# Source config
. /etc/rc.status

rc_reset
case "$1" in
    start)
        $CASSERVER_CTL start
        rc_status -v
        ;;
    stop)
        $CASSERVER_CTL stop
        rc_status -v
        ;;
    restart)
        $0 stop
        $0 start
        rc_status
        ;;
    status)
        $CASSERVER_CTL status
        rc_status -v
        ;;
    *)
        echo "Usage: $0 {start|stop|status|restart}"
        exit 1
        ;;
esac
rc_exit

Version data entries

15 entries across 15 versions & 4 rubygems

Version Path
gunark-rubycas-server-0.6.99.336 resources/init.d.sh
relevance-rubycas-server-0.6.99 resources/init.d.sh
wmernagh-rubycas-server-0.6.99.336 resources/init.d.sh
wmernagh-rubycas-server-0.7.1.1 resources/init.d.sh
rubycas-server-0.4.1 resources/init.d.sh
rubycas-server-0.5.1 resources/init.d.sh
rubycas-server-0.5.0.193 resources/init.d.sh
rubycas-server-0.6.0 resources/init.d.sh
rubycas-server-0.5.0.186 resources/init.d.sh
rubycas-server-0.4.0 resources/init.d.sh
rubycas-server-0.4.2 resources/init.d.sh
rubycas-server-0.5.0 resources/init.d.sh
rubycas-server-0.7.1 resources/init.d.sh
rubycas-server-0.7.0 resources/init.d.sh
rubycas-server-0.7.1.1 resources/init.d.sh