diff options
author | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-02-08 14:57:27 +0100 |
---|---|---|
committer | Waldemar Brodkorb <wbx@uclibc-ng.org> | 2015-02-08 14:57:27 +0100 |
commit | 06192043a983061e81b44536b00c89f377a1b129 (patch) | |
tree | 906032a6f214526d73b4c0edfb6d829789560bbd /package/php/files/php.init | |
parent | 41b1b121a3c856ecd1b5f2e7dcdab10a31981831 (diff) | |
parent | c481446c0210205deca32bef6e199b5dd84f7b11 (diff) |
Merge branch 'master' of git+ssh://openadk.org/git/openadk
Diffstat (limited to 'package/php/files/php.init')
-rw-r--r-- | package/php/files/php.init | 12 |
1 files changed, 10 insertions, 2 deletions
diff --git a/package/php/files/php.init b/package/php/files/php.init index 926e125e0..786284b46 100644 --- a/package/php/files/php.init +++ b/package/php/files/php.init @@ -13,10 +13,18 @@ autostart) exec sh $0 start ;; start) - /usr/bin/php ${php_flags} & + if [ -x /usr/bin/php-cgi ];then + su -m www -c "/usr/bin/php-cgi -b /var/run/php5.sock" + else + /usr/bin/php-fpm -D + fi ;; stop) - for i in $(pgrep -f /usr/bin/php);do kill -9 $i;done + if [ -x /usr/bin/php-cgi ];then + pkill php-cgi + else + pkill php-fpm + fi ;; restart) sh $0 stop |