PrizmDoc Viewer v13.19 - Updated
Administrator Guide / PrizmDoc Server / Starting & Stopping / Linux
In This Topic
    Linux
    In This Topic

    Introduction

    The included script ./scripts/pccis.sh can be used to start and stop the Watchdog service, which will bring up the PrizmDoc Server as defined in the configuration files. The following examples assume the default install location. If you did not install it to the default location, replace /usr/share/prizm with the location to which you installed it.

    Start

    Example

    /usr/share/prizm/scripts/pccis.sh start
    
    

    Stop

    Example

    /usr/share/prizm/scripts/pccis.sh stop
    
    

    Adding PCCIS to the Boot Sequence

    You can also configure PCCIS to be started / stopped together with the system in 2 steps:

    1. Create a symbolic link to the ./scripts/pccis.sh in /etc/init.d/ directory:

      Example

      ln -s /usr/share/prizm/scripts/pccis.sh /etc/init.d/pccis
      
      
    2. Register PCCIS as an init script, so that it is managed by the system. This step is platform-dependent.

      RedHat / CentOS

      Example

      chkconfig --add pccis
      
      

      Ubuntu

      Example

      update-rc.d pccis defaults
      
      

    Once done, the system should stop PCCIS, when going to reboot (runlevel 6) or shutdown (runlevel 0). It will also not be started, when booting in single-user mode (runlevel 1 - usually used for system recovery). PCCIS will be started in all other cases (runlevels 2 - 5).

    TIP: Normally, there shouldn’t ever be a need to change these defaults, but in case there is, you can use the mentioned commands to adjust the order of executing relative to other init scripts as well as runlevel manually:

    Example

    update-rc.d pccis start|stop NN runlvl [runlvl] [...]
    chkconfig [--level <levels>] <name> <on|off|reset|resetpriorities>
    
    

    TIP: After the first step, you can use the service command to manage PCCIS instead of invoking the script directly. That way even if you don’t need PCCIS to be automatically started / stopped, you may want to complete the first step to be able to more easily manage it. The syntax is a follows:

    Example

    service pccis start|stop|restart|status
    
    

    Excluding PCCIS from the Boot Sequence

    If you want to prevent PCCIS from starting / stopping together with the system, you need to revert Step 2 from the section above. It is done as follows:

    RedHat / CentOS

    Example

    chkconfig --del pccis
    
    

    Ubuntu

    Example

    update-rc.d -f pccis remove