diff options
author | Antonio Hernández Blas <hba.nihilismus@gmail.com> | 2014-11-12 05:49:29 +0700 |
---|---|---|
committer | Willy Sudiarto Raharjo <willysr@slackbuilds.org> | 2014-11-12 06:24:29 +0700 |
commit | 8c8738cf7c8e6af412a737565981bed49f369557 (patch) | |
tree | a934fc5e33cf4bd497cba4c716bb959cf5674ef0 /network/hiawatha/rc.php-fcgi | |
parent | 77923f41fe0583363972c530dacf2377ff7a1f50 (diff) | |
download | slackbuilds-8c8738cf7c8e6af412a737565981bed49f369557.tar.gz |
network/hiawatha: Updated for version 9.8.
Signed-off-by: Willy Sudiarto Raharjo <willysr@slackbuilds.org>
Diffstat (limited to 'network/hiawatha/rc.php-fcgi')
-rw-r--r-- | network/hiawatha/rc.php-fcgi | 74 |
1 files changed, 0 insertions, 74 deletions
diff --git a/network/hiawatha/rc.php-fcgi b/network/hiawatha/rc.php-fcgi deleted file mode 100644 index fdda1247a8..0000000000 --- a/network/hiawatha/rc.php-fcgi +++ /dev/null @@ -1,74 +0,0 @@ -#!/bin/sh - -# Start/stop/restart PHP as FastCGI daemon -# Copyright (c) 2009-2012 Antonio Hernández Blas <hba.nihilismus@gmail.com> - -# -# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -# Version 2, December 2004 -# -# Copyright (C) 2004 Sam Hocevar <sam@hocevar.net> -# -# Everyone is permitted to copy and distribute verbatim or modified -# copies of this license document, and changing it is allowed as long -# as the name is changed. -# -# DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE -# TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION -# -# 0. You just DO WHAT THE FUCK YOU WANT TO. -# - -CONF='/etc/hiawatha/php-fcgi.conf' -CMMD="/usr/sbin/php-fcgi -c $CONF" - -php_fcgi_start() { - if [ -x /usr/sbin/php-fcgi ]; then - if [ -f $CONF ]; then - PIDOF=$(pgrep -f /usr/bin/php-cgi) - if [ ! -z "$PIDOF" ]; then - echo "Error, PHP as FastCGI daemon is already running." - else - echo "Starting PHP as FastCGI daemon: $CMMD" - $CMMD - fi - else - echo "Error, file $CONF does not exist." - fi - fi -} - -php_fcgi_stop() { - echo "Stoping PHP as FastCGI daemon: /usr/sbin/php-fcgi -k" - /usr/sbin/php-fcgi -k -} - -php_fcgi_status() { - PIDOF=$(pgrep -f /usr/bin/php-cgi) - if [ ! -z "$PIDOF" ]; then - echo "PHP as FastCGI daemon is running." - else - echo "PHP as FastCGI daemon is not running." - fi -} - -case $1 in - start) - php_fcgi_start - ;; - stop) - php_fcgi_stop - ;; - restart) - php_fcgi_stop - sleep 3 - php_fcgi_start - ;; - status) - php_fcgi_status - ;; - *) - echo "Usage $0 {start|stop|restart|status}" - exit 1 - ;; -esac |