php add repo

This commit is contained in:
burakerturk
2016-04-17 21:27:55 +03:00
parent bf16a1cc9e
commit 0c00df6983
24 changed files with 78660 additions and 73802 deletions
+29
View File
@@ -0,0 +1,29 @@
from comar.service import *
import os
serviceType = "server"
serviceDesc = _({"en": "The PHP FastCGI Process Manager",
"tr": "The PHP FastCGI Süreç Yöneticisi"})
PIDFILE = "/run/php-fpm.pid"
CONFIG = "/etc/php/ext/php-fpm.conf"
@synchronized
def start():
startService(command="/usr/sbin/php-fpm",
args="-D -y %s" % CONFIG,
pidfile=PIDFILE,
donotify=True)
@synchronized
def stop():
stopService(pidfile=PIDFILE,
donotify=True)
try:
os.unlink(PIDFILE)
except OSError:
pass
def status():
return isServiceRunning(PIDFILE)