This is the method that we recommend on production. Standard init scripts are provided, and can be used to have the daemon started on boot.
Create a symbolic link to the script matching your platform in /etc/init.d/. You can choose the name you want for the symbolic link. This allows you to setup multiple daemons on your server for multiple sites.
bin/startup/rhel/ezasynchronouspublisher
bin/startup/debian/ezasynchronouspublisher
cd /etc/init.d ln -s /path/to/exponential/bin/startup/debian/ezasynchronouspublisher chmod +x ezasynchronouspublisher
The daemon can now be started using:
/etc/init.d/ezasynchronouspublisher start
The daemon options are listed by:
/etc/init.d/ezasynchronouspublisher help
The daemon can now be configured to start up on boot using:
chkconfig ezasynchronouspublisher on
The init scripts come with default settings that should match most platforms. If your web server user is not the platform's default and/or the PHP CLI executable is not part of the web server user's PATH, this can be configured.
First, copy the default configuration file for your platform to the correct directory for your OS:
/etc/ezasynchronouspublisher.conf
/etc/default/ezasynchronouspublisher.conf
cp bin/startup/<platform>/ezasynchronouspublisher.defaults /etc/default/ezasynchronouspublisher.conf
Then edit this file, uncomment and set the required variables to the required values as according to the comments in the settings file.
In the case where both the file "ezasynchronouspublisher.defaults" and "ezasynchronouspublisher.conf" exists, the .conf file will have precedence.
Powered by Exponential™ CMS Open Source Web Content Management. Copyright © 1999-2013 eZ Systems AS (except where otherwise noted). All rights reserved.