diff options
Diffstat (limited to 'lang/php5/files/php5-fpm.init')
-rw-r--r-- | lang/php5/files/php5-fpm.init | 29 |
1 files changed, 0 insertions, 29 deletions
diff --git a/lang/php5/files/php5-fpm.init b/lang/php5/files/php5-fpm.init deleted file mode 100644 index aa5397a5d..000000000 --- a/lang/php5/files/php5-fpm.init +++ /dev/null @@ -1,29 +0,0 @@ -#!/bin/sh /etc/rc.common -# Copyright (C) 2015 OpenWrt.org - -START=50 - -PROG=/usr/bin/php-fpm -CONFIG=/etc/php5-fpm.conf - -SERVICE_PID_FILE=/var/run/php5-fpm.pid - -start_instance() { - local section="$1" - local enabled - - config_get_bool enabled "$section" 'enabled' 0 - - [ $enabled -gt 0 ] || return 1 - - service_start $PROG -y $CONFIG -g $SERVICE_PID_FILE -} - -start() { - config_load 'php5-fpm' - config_foreach start_instance 'php5-fpm' -} - -stop() { - service_stop $PROG -} |