Skip to content

Commit f081c22

Browse files
Merge pull request #5610 from craigcomstock/ENT-11440-2/master
Added cf-php-fpm systemd service unit template for http2 enablement in Mission Portal
2 parents 5467dfa + c8f3ddd commit f081c22

File tree

6 files changed

+24
-2
lines changed

6 files changed

+24
-2
lines changed

configure.ac

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1596,6 +1596,7 @@ AC_ARG_WITH(systemd-service, AS_HELP_STRING([--with-systemd-service=PATH],
15961596
AS_IF([test "x$SYSTEMD_SERVICE_PATH" = "x"], [], [
15971597
AC_SUBST([SYSTEMD_SERVICE_PATH])
15981598
AC_CONFIG_FILES([misc/systemd/cfengine3.service])
1599+
AC_CONFIG_FILES([misc/systemd/cf-php-fpm.service])
15991600
AC_CONFIG_FILES([misc/systemd/cf-apache.service])
16001601
AC_CONFIG_FILES([misc/systemd/cf-execd.service])
16011602
AC_CONFIG_FILES([misc/systemd/cf-hub.service])

misc/Makefile.am

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@ SUBDIRS = selinux
22

33
# include unconditionally in the distribution tarball
44
EXTRA_DIST= init.d/cfengine3.in \
5+
systemd/cf-php-fpm.service.in \
56
systemd/cf-apache.service.in \
67
systemd/cf-execd.service.in \
78
systemd/cf-hub.service.in \
@@ -21,6 +22,7 @@ endif
2122
if WITH_SYSTEMD_SERVICE
2223
systemddir = $(SYSTEMD_SERVICE_PATH)
2324
systemd_DATA = systemd/cfengine3.service
25+
systemd_DATA += systemd/cf-php-fpm.service
2426
systemd_DATA += systemd/cf-apache.service
2527
systemd_DATA += systemd/cf-execd.service
2628
systemd_DATA += systemd/cf-hub.service

misc/selinux/cfengine-enterprise.fc

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,5 +9,6 @@
99
/var/cfengine/httpd/bin/apachectl -- gen_context(system_u:object_r:cfengine_apachectl_exec_t,s0)
1010
/var/cfengine/httpd/bin/.* -- gen_context(system_u:object_r:cfengine_httpd_exec_t,s0)
1111
/var/cfengine/httpd/php/bin/.* -- gen_context(system_u:object_r:cfengine_httpd_exec_t,s0)
12+
/var/cfengine/httpd/php/sbin/.* -- gen_context(system_u:object_r:cfengine_httpd_exec_t,s0)
1213
/opt/cfengine(/.*)? gen_context(system_u:object_r:cfengine_var_lib_t,s0)
1314
/opt/cfengine/notification_scripts(/.*)? gen_context(system_u:object_r:cfengine_action_script_exec_t,s0)

misc/systemd/cf-apache.service.in

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
11
[Unit]
22
Description=CFEngine Enterprise Webserver
33
After=syslog.target
4-
Wants=cf-postgres.service
5-
After=cf-postgres.service
4+
Wants=cf-php-fpm.service
5+
After=cf-php-fpm.service
66
ConditionPathExists=@workdir@/httpd/bin/apachectl
77
PartOf=cfengine3.service
88

misc/systemd/cf-php-fpm.service.in

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
[Unit]
2+
Description=CFEngine Enterprise PHP FastCGI Process Manager
3+
After=syslog.target
4+
Wants=cf-postgres.service
5+
After=cf-postgres.service
6+
ConditionPathExists=@workdir@/httpd/php/sbin/php-fpm
7+
PartOf=cfengine3.service
8+
9+
[Service]
10+
ExecStart=@workdir@/httpd/php/sbin/php-fpm --nodaemonize --force-stderr
11+
ExecReload=/bin/kill -USR2 $MAINPID
12+
PIDFile=@workdir@/httpd/php-fpm.pid
13+
Type=simple
14+
15+
[Install]
16+
WantedBy=multi-user.target

misc/systemd/cfengine3.service.in

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,7 @@ Wants=cf-serverd.service
99
Wants=cf-execd.service
1010
Wants=cf-monitord.service
1111
Wants=cf-postgres.service
12+
Wants=cf-php-fpm.service
1213
Wants=cf-apache.service
1314
Wants=cf-hub.service
1415
Wants=cf-reactor.service
@@ -18,6 +19,7 @@ Before=cf-serverd.service
1819
Before=cf-execd.service
1920
Before=cf-monitord.service
2021
Before=cf-postgres.service
22+
Before=cf-php-fpm.service
2123
Before=cf-apache.service
2224
Before=cf-hub.service
2325
Before=cf-reactor.service

0 commit comments

Comments
 (0)