Linux: Package Setup and Control Scripts

The following section describes how to do control Zend Server components from the command line.

Controlling Zend Server Components from the Command Line

The setup and control scripts control the optional components that come with Zend Server for the DEB and RPM packages.

Instructions on how to complete a procedure

To control the UI's dedicated server, run:

# <install_path>/bin/lighttpdctl.sh stop|start|restart

To set the UI's password, run:

#<install_path>/bin/php <install_path>/bin/gui_passwd.php

To setup the Java Bridge, run:

#<install_path>/bin/setup_jb.sh

To control (start/stop) the Java Bridge daemon, run:

# <install_path>/bin/java_bridge.sh stop|start|restart

 

Command Line Actions

The following table lists the possible actions that can be done to the Zend Server components from the command line:

Usage: /usr/local/zend/bin/zendctl.sh <action>.

Note:

In clustered environments these actions are done exclusively on the servers associated with the cluster from each server's command line.

 

Action

Description

Zend Server

start Start all Zend Server daemons

 

stop Stop all Zend Server daemons

 

restart Restart all Zend Server daemons

 

version Print Zend Server version

 

status Get Zend Server status

Apache

start-apache Start Apache only

 

stop-apache Stop Apache only

 

restart-apache Restart Apache only
nginx start-nginx Start nginx only
  stop-nginx Stop nginx only
  restart-nginx Restart nginx only
FPM start-fpm Start fpm only
  stop-fpm Stop fpm only
  restart-fpm Restart fpm only

LightHttpd

start-lighttpd Start lighttpd only

 

stop-lighttpd Stop lighttpd only

 

restart-lighttpd Restart lighttpd only

Java Bridge Daemon

setup-jb Setup Java Bridge

Running zendctl.sh will show a list of uses and only after running setup_jb.sh will the following additional options be available:

start-jb Start Java Bridge only

 

stop-jb Stop Java Bridge only

 

restart-jb Restart Java Bridge only

Zend Monitor Daemon

start-monitor Start Monitor daemon only

 

stop-monitor Stop Monitor daemon only

 

restart-monitor Restart Monitor daemon only

Zend Job Queue Daemon

start-jobqueue Start Job Queue daemon only

 

stop-jobqueue Stop Job Queue daemon only

 

restart-jobqueue Restart Job Queue daemon only

Zend Session Clustering Daemon (SCD)

start-scd Start Session Clustering daemon only

 

stop-scd Stop Session Clustering daemon only

 

restart-scd Restart Session Clustering daemon only

Zend Deployment Daemon

start-deployment Start Deployment daemon only

 

stop-deployment Stop Deployment daemon only

 

restart-deployment Restart Deployment daemon only

Zend Server Daemon (ZSD)

start-zsd Start Zend Server daemon only

 

stop-zsd Stop Zend Server daemon only

 

restart-zsd Restart Zend Server daemon only

Controlling Zend Server from Startup

Zend Server by default is installed to start at boot time. You can, if you want to, change that, using native OS tools (using chkconfig or update-rc.d). You can even control which specific daemons are started or not when Zend Server starts - this is useful if, for example, if you are not using Job Queue and do not want this daemon to run for nothing.

 

The Zend Server daemons are controlled via: /usr/local/zend/bin/zendctl.sh which issymlinked to /etc/init.d/Zend Server

Zend Server postinstall scripts call:

  • Debian and Ubuntu: update-rc.d Zend Server defaults
  • CentOS and RHEL: /sbin/chkconfig --add Zend Server