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.
Example |
Copy Code
|
---|---|
/usr/share/prizm/scripts/pccis.sh start |
Example |
Copy Code
|
---|---|
/usr/share/prizm/scripts/pccis.sh stop |
You can also configure PCCIS to be started / stopped together with the system in 2 steps:
Example Copy Code ln -s /usr/share/prizm/scripts/pccis.sh /etc/init.d/pccis
RedHad / CentOS
Example Copy Code chkconfig --add pccis
Ubuntu
Example Copy Code 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 |
Copy Code
|
---|---|
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 |
Copy Code
|
---|---|
service pccis start|stop|restart|status |
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:
Example |
Copy Code
|
---|---|
chkconfig --del pccis |
Example |
Copy Code
|
---|---|
update-rc.d -f pccis remove |