From: Loren C. <lor...@gm...> - 2010-07-26 21:32:28
|
We should add the option to have the installer create startup/shutdown scripts for linux. The following is the script that is called for starting and stopping eXist. It is passed a parameter start, stop, restart, reload, status, or condrestart: /etc/init.d/existdb The following are symlinks to the above script. These start or stop services defined in the scripts contained in the /etc/rc#.d directories. The S scripts are run during startup, lower through higher run-level. The K scripts are run during shutdown, higher through lower run-level. /etc/rc0.d/K98existdb -> ../init.d/existdb /etc/rc1.d/K98existdb -> ../init.d/existdb /etc/rc2.d/S98existdb -> ../init.d/existdb /etc/rc3.d/S98existdb -> ../init.d/existdb /etc/rc4.d/S98existdb -> ../init.d/existdb /etc/rc5.d/S98existdb -> ../init.d/existdb /etc/rc6.d/K98existdb -> ../init.d/existdb I will be developing the /etc/init.d/existdb script for the LEXA stack document. This script and the symlinks will allow for a clean startup and shutdown of the eXist server when linux is being started, stopped, rebooted, etc. Adding these scripts will allow for the user to have a command-line option of: sudo /etc/init.d/existdb start to start eXist sudo /etc/init.d/existdb stop to stop eXist and sudo /etc/init.d/existdb restart to restart eXist. We would need to come up with what a reload could be or just have it do a restart. A status would be a nice thing to identify. Probably the process id (pid) and the the values displayed during startup. |