php8 new package

This commit is contained in:
Rmys
2024-11-28 14:46:29 +03:00
parent 2a56104a1a
commit f7d0c2996b
19 changed files with 4768 additions and 48 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)