Skip to content

Commit

Permalink
Added php-fpm systemd service files to enable http2 in Mission Portal
Browse files Browse the repository at this point in the history
Ticket: ENT-11440
Changelog: title
  • Loading branch information
craigcomstock committed Oct 7, 2024
1 parent 8334505 commit ccc8486
Show file tree
Hide file tree
Showing 5 changed files with 23 additions and 2 deletions.
1 change: 1 addition & 0 deletions configure.ac
Original file line number Diff line number Diff line change
Expand Up @@ -1582,6 +1582,7 @@ AC_ARG_WITH(systemd-service, AS_HELP_STRING([--with-systemd-service=PATH],
AS_IF([test "x$SYSTEMD_SERVICE_PATH" = "x"], [], [
AC_SUBST([SYSTEMD_SERVICE_PATH])
AC_CONFIG_FILES([misc/systemd/cfengine3.service])
AC_CONFIG_FILES([misc/systemd/cf-php-fpm.service])
AC_CONFIG_FILES([misc/systemd/cf-apache.service])
AC_CONFIG_FILES([misc/systemd/cf-execd.service])
AC_CONFIG_FILES([misc/systemd/cf-hub.service])
Expand Down
2 changes: 2 additions & 0 deletions misc/Makefile.am
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@ SUBDIRS = selinux

# include unconditionally in the distribution tarball
EXTRA_DIST= init.d/cfengine3.in \
systemd/cf-php-fpm.service.in \
systemd/cf-apache.service.in \
systemd/cf-execd.service.in \
systemd/cf-hub.service.in \
Expand All @@ -21,6 +22,7 @@ endif
if WITH_SYSTEMD_SERVICE
systemddir = $(SYSTEMD_SERVICE_PATH)
systemd_DATA = systemd/cfengine3.service
systemd_DATA += systemd/cf-php-fpm.service
systemd_DATA += systemd/cf-apache.service
systemd_DATA += systemd/cf-execd.service
systemd_DATA += systemd/cf-hub.service
Expand Down
4 changes: 2 additions & 2 deletions misc/systemd/cf-apache.service.in
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
[Unit]
Description=CFEngine Enterprise Webserver
After=syslog.target
Wants=cf-postgres.service
After=cf-postgres.service
Wants=cf-php-fpm.service
After=cf-php-fpm.service
ConditionPathExists=@workdir@/httpd/bin/apachectl
PartOf=cfengine3.service

Expand Down
16 changes: 16 additions & 0 deletions misc/systemd/cf-php-fpm.service.in
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
[Unit]
Description=CFEngine Enterprise PHP FastCGI Process Manager
After=syslog.target
Wants=cf-postgres.service
After=cf-postgres.service
ConditionPathExists=@workdir@/httpd/php/sbin/php-fpm
PartOf=cfengine3.service

[Service]
ExecStart=@workdir@/httpd/php/sbin/php-fpm --nodaemonize
ExecReload=/bin/kill -USR2 $MAINPID
PIDFile=@workdir@/httpd/php-fpm.pid
Type=simple

[Install]
WantedBy=multi-user.target
2 changes: 2 additions & 0 deletions misc/systemd/cfengine3.service.in
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ Wants=cf-serverd.service
Wants=cf-execd.service
Wants=cf-monitord.service
Wants=cf-postgres.service
Wants=cf-php-fpm.service
Wants=cf-apache.service
Wants=cf-hub.service
Wants=cf-reactor.service
Expand All @@ -18,6 +19,7 @@ Before=cf-serverd.service
Before=cf-execd.service
Before=cf-monitord.service
Before=cf-postgres.service
Before=cf-php-fpm.service
Before=cf-apache.service
Before=cf-hub.service
Before=cf-reactor.service
Expand Down

0 comments on commit ccc8486

Please sign in to comment.