Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added cf-php-fpm systemd service unit template for http2 enablement in Mission Portal #5610

Draft
wants to merge 1 commit into
base: master
Choose a base branch
from
Draft
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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 --force-stderr
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
Loading