summaryrefslogtreecommitdiff
path: root/etc/init.d/commission-php-fpm
diff options
context:
space:
mode:
Diffstat (limited to 'etc/init.d/commission-php-fpm')
-rwxr-xr-xetc/init.d/commission-php-fpm5
1 files changed, 2 insertions, 3 deletions
diff --git a/etc/init.d/commission-php-fpm b/etc/init.d/commission-php-fpm
index 2f18fbc..e5e1077 100755
--- a/etc/init.d/commission-php-fpm
+++ b/etc/init.d/commission-php-fpm
@@ -10,6 +10,7 @@
# Description: starts the PHP FastCGI Process Manager daemon
### END INIT INFO
+DESC="MT php commissioning server "
NAME="php-fpm-commission"
prefix=/usr
exec_prefix=/usr
@@ -22,8 +23,6 @@ php_fpm_PID="/var/run/${NAME}.pid"
php_opts="-R --fpm-config $php_fpm_CONF --pid $php_fpm_PID"
ENABLED=yes
-[ -f "/run/mt-commission" ] && . "/run/mt-commission"
-
wait_for_pid () {
try=0
@@ -55,7 +54,7 @@ wait_for_pid () {
case "$1" in
start)
- [[ -f /etc/default/commission ]] && . /etc/default/commission
+ [ -f "/run/mt-commission" ] && . "/run/mt-commission"
if [[ $ENABLED != "yes" ]]; then
echo "$NAME: disabled in /run/mt-commission"
exit