From 85b3fc741ec47f7f3660398830bdfc0c5c5c5d9b Mon Sep 17 00:00:00 2001 From: root Date: Tue, 25 Oct 2016 22:18:49 +0200 Subject: [PATCH] saving uncommitted changes in /etc prior to emerge run --- .etckeeper | 1 + conf.d/php-fpm | 8 ++++++++ init.d/php-fpm | 1 + 3 files changed, 10 insertions(+) create mode 100644 conf.d/php-fpm diff --git a/.etckeeper b/.etckeeper index 3f2ce6f..776283b 100755 --- a/.etckeeper +++ b/.etckeeper @@ -450,6 +450,7 @@ maybe chmod 0644 'conf.d/ntp-client' maybe chmod 0644 'conf.d/ntpd' maybe chmod 0644 'conf.d/openvpn' maybe chmod 0644 'conf.d/pciparm' +maybe chmod 0644 'conf.d/php-fpm' maybe chmod 0640 'conf.d/postgrey' maybe chmod 0644 'conf.d/pydoc-2.7' maybe chmod 0644 'conf.d/pydoc-3.4' diff --git a/conf.d/php-fpm b/conf.d/php-fpm new file mode 100644 index 0000000..b3efdbf --- /dev/null +++ b/conf.d/php-fpm @@ -0,0 +1,8 @@ +# The OpenRC conf.d file that accompanies the php-fpm init script. +# Not to be confused with the php-fpm.conf file that ships with +# PHP itself. + +# Set the umask of the FPM process to the given (octal) value. This is +# passed directly to start-stop-daemon. If not specified, the system +# default will be used. +#PHP_FPM_UMASK=0002 diff --git a/init.d/php-fpm b/init.d/php-fpm index 6502ab9..6369e9f 100755 --- a/init.d/php-fpm +++ b/init.d/php-fpm @@ -23,6 +23,7 @@ start() { set_phpvars start-stop-daemon --start --pidfile "${PHP_FPM_PID}" \ --exec "${PHP_FPM_BIN}" \ + ${PHP_FPM_UMASK:+--umask ${PHP_FPM_UMASK}} \ -- \ --fpm-config "${PHP_FPM_CONF}" \ --pid "${PHP_FPM_PID}" -- 2.39.5