Redwood Documentation

Product Documentation

 

›Starting Automatically

RunMyJobsRunMyJobs On-Premises Installation

Preparing Installation

  • Preparation for Redwood Server Installation
  • Database Prerequisites
  • Basic Sizing Guidelines
  • Planning

Installation

  • Installation
  • Download and Extract redwood-platform.zip
  • Installing Redwood Platform
  • Redwood Platform Application Server
  • Licensing Redwood Server

Security Overview

  • Security Overview
  • Security in Redwood Platform
  • External Security Systems
  • Lightweight Directory Access Protocol (LDAP)
  • Configuring LDAP Manually
  • Configuring LDAP With the LDAP Wizard
  • Database Authentication
  • Database Authentication - Enforcing Password Policies
  • Configuring JEE Security

Configuration

  • Installing and Configuring Redwood Platform Service on Windows
  • Submitting Processes and Licensing on Startup
  • Configuring the HTTP or HTTPS Interface of Redwood Platform
  • Configuring the APR HTTPS Interface of Redwood Platform
  • Configuring the NIO HTTPS Interface of Redwood Platform
  • Importing a Certificate Authority
  • Checking Your License
  • Managing Your Licenses with the License Manager
  • Configuration
  • Configuration Entries

Starting Automatically

  • Starting Redwood Platform Automatically
  • Starting Redwood Platform Automatically with Systemd
  • Starting Redwood Platform Automatically with Init
  • Starting Redwood Platform Automatically with Launchd
  • Starting Redwood Platform Automatically on Solaris

High Availability

  • High Availability
  • Configuring Web Application Clusters for High Availability
  • Creating Redwood Platform Clusters
  • Configuring Web Application Clusters on Microsoft Cluster Service
  • Configuring Platform Agents for High Availability
  • Configuring Platform Agents on Microsoft Cluster Service

Upgrade

  • Upgrading Redwood Server
  • Upgrading Redwood Platform

Migration

  • Migrating Redwood Platform

Uninstall

  • Uninstalling Redwood Server

Reference

  • Standard setvars script
  • Admin Server
  • Checking Your License
← Starting Redwood Platform Automatically with SystemdStarting Redwood Platform Automatically with Launchd →

on-site-related topic Starting Redwood Platform Automatically with Init

You configure Redwood Platform to start automatically on UNIX systems using init by specifying a startup script that is compatible with your platform. There is usually a skeleton available on your platform; consult the platform-specific documentation. Create a script in your UNIX startup scripts location (often /etc/init.d/ or /etc/rc.d/). If the database is running on the same host, check to see in which runlevel it is started, create two symbolic links to your script in that runlevel, one starting with S the other with K, the S and K links should be followed by a number higher than the number of the database startup and shutdown scripts followed by the name redwood, so it starts later and gets stopped before your database gets shut down.

On some systems, like Suse 10, you must enable the service with yast or yast2.

The following example script can be used to start Redwood Platform on UNIX systems using init. Note that you must customize it according to your needs. Change the LUSER environment variable.

On Suse, RedHat, and Oracle Linux systems, you use chkconfig to install the service.

Init Shell Script

#!/bin/bash
#
# (C) Copyright 2006-2017 Redwood Technology B.V., Houten, The Netherlands.
#
# $Id$
#
###
# IRIX style chkconfig
####
# chkconfig: 2345 19 08
# description: Redwood Startup script
###
# Linux Standard Base Specification 1.3
# Used by insserv and other LSB compliant tools.
### BEGIN INIT INFO
# Provides: scheduler
# Required-Start: $local_fs $autofs $remote_fs $network
# Required-Stop:
# Default-Start: 2 3 5
# Default-Stop: 0 6
# Short-Description: Start & Stop Scheduler
# Description: Script to start and stop the Redwood.
### END INIT INFO

# Redwood installation path (path to the j2ee directory)
RW_INSTALL="/opt/server/redwood"
LUSER=nobody
SERVER_NUM=1

showUsage()
{
  if [ -z "${1:-}" ]
  then
    echo "Usage: $0 {start|stop|status}"
    exit 0
  fi
}

startInstance()
{
  su -l $LUSER -c /bin/bash ${RW_INSTALL}/j2ee/cluster/server${SERVER_NUM}/bin/start.sh
  echo "Started Redwood"
}

stopInstance()
{
  echo "Stopping Redwood"
  su -l $LUSER -c /bin/bash ${RW_INSTALL}/j2ee/cluster/server${SERVER_NUM}/bin/stop.sh
  timeout=30

  while [ "`ps -ef | grep server[${SERVER_NUM}] | wc -l`" -gt 0 -a $timeout -gt 0 ]
  do
    sleep 1
    timeout=`expr $timeout - 1`
  done
  kill `ps -ef | grep server[${SERVER_NUM}] | awk '{print $2}'`
  echo "Redwood is stopped"
}

statusInstance()
{
  if [ "`ps -ef | grep server${SERVER_NUM} | wc -l`" -gt 1 ]
  then
    echo "Redwood: Running"
  else
    echo "Redwood: Shutdown"
  fi
}

#
# MAIN
#

case $1 in
  start)
    startInstance
  ;;
  stop)
    stopInstance
  ;;
  status)
    statusInstance
  ;;
    *)
    showUsage
  ;;
esac
exit $?

Procedure

Linux

This script is compliant with the Linux Standard Base specification

  1. Adapt the script to your environment and save it to a file named redwood.com-scheduler in the /etc/init.d/ folder.
  2. If the database is on the same host, you must locate the name of the start script for your database and add it to the # Required-Start: section.
  3. Run chmod +x /etc/init.d/redwood.com-scheduler to make the startup script executable.
  4. Run /usr/lib/lsb/install_initd /etc/init.d/redwood.com-scheduler to install the startup script.

Other UNIX

The precise instructions vary from platform to platform; please consult the documentation.

  1. Adapt the above script to your environment and copy it to your startup scripts folder (often /etc/init.d/ or /etc/rc.d/).
  2. If your database runs on the same host, locate the startup script of your database and its symbolic S and K links (usually in /etc/rc<n>, where <n> is the runlevel number).
  3. Create symbolic S and K links in the desired runlevels with a higher number than the database.

See Also

  • Starting Redwood Platform Automatically
  • Starting Redwood Platform Automatically with Systemd

onsiteTopic

← Starting Redwood Platform Automatically with SystemdStarting Redwood Platform Automatically with Launchd →
  • Init Shell Script
  • Procedure
    • Linux
    • Other UNIX
  • See Also
Docs
Getting StartedInstallationFinance InstallationConcepts
TroubleshootingArchiving
Learn and Connect
Support Portal
BlogEventsResources
ISO/ IEC 27001 Information Security Management
Automate to be human

2023 All Rights Reserved |

Terms of Service | Policies | Cookies | Glossary | Third-party Software | Contact | Copyright | Impressum |