PROTOR Knowledge Base

PROTOR Redhat : PROTOR System Startup

Author: Don Davies
Date: 21-Apr-2002


A generalised PROTOR startup script is provided which can be used to initialise the PROTOR acquisition and logging system both on system boot and from user commands.

This file may be found in the protor distribution CD and is called protor-startup. Also on this CD is a generalised PROTOR system configuration file ( protor ) and a user shell startup script ( protor.cshrc ). The following notes are intended as a guide to setting up the protor system initially.

PROTOR Configuration file (/etc/sysconfig/protor)

This file should be modifed to suit the system. The file contains some general details about the protor installation. The following is an example.

      #
      # General configuration file for PROTOR system
      #
      PROUSER=protor # Username of owner of PROTOR installation
      PR_ROOT=/home/protor # Root directory for PROTOR installation
      PB_EXE=/home/protor/exe # Directory for main executables
      DT_ROOT=/data/PROSIG # Root directory for data storage
      RM_STATION=PROSIG # Station name
      PROTOR_TYPE=PROTOR # Option [PROTOR|PROLITE|PROBAL|PROMILL]
      ACQ_TYPE=SKT # Acquisition type [PR|PB|SKT]
      ARCHIVE_DEVICE=/mnt/optical # Device name for archive or NULL
      RSCM_EXE=/home/protor/exerscm  # RSCM directory ( for PROTOR LITE)

This file is access by the general protor startup scripts and also by the individual user shell initialisation scripts.

PROTOR Startup Script (/etc/init.d/protor)

This file is bash script for starting, stopping, restarting and showing status of the protor acquisition and logging modules. The PROTOR distribution CD contains a copy of the script which must be either copied or linked to the file /etc/init.d/protor.

In order for the PROTOR system to be activated on system entry to run-level 5 then the following links should be made.

         ln -s /etc/init.d/protor /etc/rc.d/rc5.d/S98protor and
         ln -s /etc/init.d/protor /etc/rc.d/rc5.d/K98protor

The script supports the following action commands.

        start       Start PROTOR acquisition and logging system
        stop        Shutdown PROTOR acquisition and logging system
        restart     Shutdown and restart PROTOR acquisition and logging system
        status      Show status of PROTOR acquisition and logging tasks
        siglog      Send SIGUSR1 signal to PROTOR data logger
        startalert  Restart PROTOR alert task

Therefore PROTOR may be manually started by the command

         service protor start

In order to startup and shutdown PROTOR from the PROTOR Root account then the following convenient aliases are included in the shell startup script.

         alias protor_startup "/etc/init.d/protor start"
         alias protor_shutdown "/etc/init.d/protor stop"
         alias protor_status "/etc/init.d/protor status"

Aliases may also be included for the additional startup options such as:

         alias protor_restart "/etc/init.d/protor restart"
         alias protor_signal "/etc/init.d/protor siglog"
         alias protor_startalert "/etc/init.d/protor startalert"


Return to Knowledge Base