You are viewing an old version of this page. View the current version.
Compare with Current
View Page History
Version 1
Next »
Applies To
Linux Admins managing Zend Server through SystemCTL and not through ZendCTL
Overview
Starting, Stopping, Restarting and checking Status of Zend Server Services on Linux should normally be done by ZendCTL, under /usr/local/zend/bin/zendctl.sh.
However, some admins prefer to be using SystemCTL for managing Zend Server service, but it misses the Clean Semaphores script, which runs as soon as Zend Server is stopped.
Requirements
SystemD version should supersede 231, so CentOS 7 will not apply here.
- Verify systemd --version > 231
Recipe for Clean Semaphores pass through SystemD service hook
- Edit /usr/lib/systemd/system/zend-server.service
- Comment out Clean Semaphore line, and add a plus sign (+) before the path to the Clean Semaphores command:
ExecStopPost=+/usr/local/zend/bin/clean_semaphores.sh
- Save and reload SystemD:
systemctl daemon-reload
Related articles
-
Page:
-
Page:
-
Page:
-
Page:
-
Page: