php8: introduce new major version package

Signed-off-by: Michael Heimpold <mhei@heimpold.de>
This commit is contained in:
Michael Heimpold
2021-01-01 22:36:07 +01:00
parent 73833e6a24
commit b1c44ae9fd
17 changed files with 2352 additions and 0 deletions
+28
View File
@@ -0,0 +1,28 @@
#!/bin/sh /etc/rc.common
START=50
PROG=/usr/bin/php8-fpm
CONFIG=/etc/php8-fpm.conf
SERVICE_PID_FILE=/var/run/php8-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 'php8-fpm'
config_foreach start_instance 'php8-fpm'
}
stop() {
service_stop $PROG
}